Revert "Remove unnecessary check"

This reverts commit a9631c09c8.
This commit is contained in:
ashilkn 2024-03-08 14:09:43 +05:30
parent a9385f2132
commit cf8e684cb3

View file

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