Render origin files in case of GIFs
This commit is contained in:
parent
a9a2a2d579
commit
3bfa5991d9
|
@ -161,7 +161,10 @@ class _ZoomableImageState extends State<ZoomableImage>
|
|||
|
||||
if (!_loadingFinalImage && !_loadedFinalImage) {
|
||||
_loadingFinalImage = true;
|
||||
getFile(_photo).then((file) {
|
||||
getFile(
|
||||
_photo,
|
||||
isOrigin: isGIF(), // since playback only happens on origin files
|
||||
).then((file) {
|
||||
if (file != null && file.existsSync()) {
|
||||
_onFinalImageLoaded(Image.file(file).image);
|
||||
} else {
|
||||
|
@ -212,4 +215,6 @@ class _ZoomableImageState extends State<ZoomableImage>
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
bool isGIF() => _photo.getDisplayName().toLowerCase().endsWith(".gif");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue