fix: remove hive file (#2276)

This commit is contained in:
My-Responsitories
2026-06-03 11:59:11 +00:00
committed by GitHub
parent bed533eaeb
commit 3446484d97
8 changed files with 21 additions and 21 deletions

View File

@@ -153,10 +153,9 @@ class VideoShotImage extends StatefulWidget {
}
Future<ui.Image?> _getImg(String url) async {
final cacheManager = DefaultCacheManager.instance!;
final cacheKey = Utils.getFileName(url, fileExt: false);
try {
final fileInfo = await cacheManager.getSingleFile(
final fileInfo = await CacheManager.manager.getSingleFile(
ImageUtils.safeThumbnailUrl(url),
key: cacheKey,
headers: Constants.baseHeaders,