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:
parent
c4ec818fb8
commit
a9631c09c8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue