* opt: downloadImg use cache

* opt: uin8 cast

* non null ext
This commit is contained in:
My-Responsitories
2025-10-14 19:36:43 +08:00
committed by GitHub
parent 43beb518f4
commit c3fa976b26
6 changed files with 84 additions and 59 deletions

View File

@@ -80,7 +80,7 @@ class NetworkImgLayer extends StatelessWidget {
if (height == null || forceUseCacheWidth || width <= height!) {
memCacheWidth = width.cacheSize(context);
} else {
memCacheHeight = height.cacheSize(context);
memCacheHeight = height?.cacheSize(context);
}
return CachedNetworkImage(
imageUrl: ImageUtils.thumbnailUrl(src, quality),