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

@@ -153,7 +153,7 @@ class VideoShotImage extends StatefulWidget {
}
Future<ui.Image?> _getImg(String url) async {
final cacheManager = DefaultCacheManager();
final cacheManager = DefaultCacheManager.instance!;
final cacheKey = Utils.getFileName(url, fileExt: false);
try {
final fileInfo = await cacheManager.getSingleFile(