瀏覽代碼

Fix visibility of util method

vishnukvmd 2 年之前
父節點
當前提交
5c305e25c4
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/ui/viewer/file/zoomable_image.dart

+ 2 - 2
lib/ui/viewer/file/zoomable_image.dart

@@ -163,7 +163,7 @@ class _ZoomableImageState extends State<ZoomableImage>
       _loadingFinalImage = true;
       _loadingFinalImage = true;
       getFile(
       getFile(
         _photo,
         _photo,
-        isOrigin: isGIF(), // since playback only happens on origin files
+        isOrigin: _isGIF(), // since playback only happens on origin files
       ).then((file) {
       ).then((file) {
         if (file != null && file.existsSync()) {
         if (file != null && file.existsSync()) {
           _onFinalImageLoaded(Image.file(file).image);
           _onFinalImageLoaded(Image.file(file).image);
@@ -216,5 +216,5 @@ class _ZoomableImageState extends State<ZoomableImage>
     }
     }
   }
   }
 
 
-  bool isGIF() => _photo.getDisplayName().toLowerCase().endsWith(".gif");
+  bool _isGIF() => _photo.getDisplayName().toLowerCase().endsWith(".gif");
 }
 }