Remove unnecessary check

_loadedFinalImage will be true only after _loadedSmallThumbnail becomes true as first the small thumbnail is loaded and then the final image
This commit is contained in:
ashilkn 2024-03-07 07:29:39 +05:30
parent c4ec818fb8
commit a9631c09c8

View file

@ -129,7 +129,7 @@ class _ZoomableImageState extends State<ZoomableImage>
}
void _loadNetworkImage() {
if (!_loadedSmallThumbnail && !_loadedFinalImage) {
if (!_loadedSmallThumbnail) {
final cachedThumbnail = ThumbnailInMemoryLruCache.get(_photo);
if (cachedThumbnail != null) {
_imageProvider = Image.memory(cachedThumbnail).image;