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 dom
parent 2c775e6d19
commit 95efeec147
26 changed files with 124 additions and 198 deletions

View File

@@ -102,7 +102,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(