opt static thumbnail gif

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-17 20:59:52 +08:00
parent eb11971c66
commit 4f35962127
6 changed files with 66 additions and 14 deletions

View File

@@ -66,13 +66,7 @@ class NetworkImgLayer extends StatelessWidget {
memCacheHeight = height;
}
return CachedNetworkImage(
imageUrl: ImageUtils.thumbnailUrl(
src,
maxQuality: quality,
suffix: src!.endsWith(ImageUtils.kSuffixGIF)
? ImageUtils.kSuffixJPG
: ImageUtils.kSuffixWEBP,
),
imageUrl: ImageUtils.thumbnailUrl(src, maxQuality: quality),
width: width,
height: height,
memCacheWidth: memCacheWidth,