Neeraj Gupta %!s(int64=2) %!d(string=hai) anos
pai
achega
1a25717cb9
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      lib/models/file.dart
  2. 1 1
      lib/ui/viewer/file/zoomable_image.dart

+ 1 - 1
lib/models/file.dart

@@ -285,7 +285,7 @@ class File extends EnteFile {
   }
   }
 
 
   // return 0 if the height is not available
   // return 0 if the height is not available
-  int get heigth {
+  int get height {
     return pubMagicMetadata?.h ?? 0;
     return pubMagicMetadata?.h ?? 0;
   }
   }
 
 

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

@@ -276,7 +276,7 @@ class _ZoomableImageState extends State<ZoomableImage>
       final int h = imageInfo.image.height, w = imageInfo.image.width;
       final int h = imageInfo.image.height, w = imageInfo.image.width;
       if (h != 0 &&
       if (h != 0 &&
           w != 0 &&
           w != 0 &&
-          (h != widget.photo.heigth || w != widget.photo.width)) {
+          (h != widget.photo.height || w != widget.photo.width)) {
         _logger.info('Updating aspect ratio for ${widget.photo} to $h:$w');
         _logger.info('Updating aspect ratio for ${widget.photo} to $h:$w');
         await FileMagicService.instance.updatePublicMagicMetadata(
         await FileMagicService.instance.updatePublicMagicMetadata(
             [widget.photo], {publicMagicKeyHeight: h, publicMagicKeyWidth: w});
             [widget.photo], {publicMagicKeyHeight: h, publicMagicKeyWidth: w});