refa: cache manager (#2266)

* opt: image utils

* refa: cache manager
This commit is contained in:
My-Responsitories
2026-06-02 14:09:36 +00:00
committed by GitHub
parent e619946b9c
commit 66a191b018
26 changed files with 126 additions and 196 deletions

View File

@@ -100,7 +100,11 @@ void main() async {
exit(0);
}
ScaledWidgetsFlutterBinding.instance.scaleFactor = Pref.uiScale;
await Future.wait([_initDownPath(), _initTmpPath()]);
await Future.wait([
_initDownPath(),
_initTmpPath(),
CacheManager.ensureInitialized(),
]);
Get
..lazyPut(AccountService.new)
..lazyPut(DownloadService.new);