image cache patch

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-11 12:51:45 +08:00
parent 32eeef7866
commit 459f84b208
48 changed files with 260 additions and 143 deletions

View File

@@ -400,7 +400,7 @@ class _GalleryViewerState extends State<GalleryViewer>
child = Image(
key: _key,
image: ResizeImage.resizeIfNeeded(
_containerSize.width.cacheSize(context),
_containerSize.width,
null,
CachedNetworkImageProvider(_getActualUrl(item.url)),
),
@@ -420,7 +420,7 @@ class _GalleryViewerState extends State<GalleryViewer>
} else {
return Image(
image: ResizeImage.resizeIfNeeded(
_containerSize.width.cacheSize(context),
_containerSize.width,
null,
CachedNetworkImageProvider(
ImageUtils.thumbnailUrl(