Przeglądaj źródła

Used better name for a method

ashilkn 2 lat temu
rodzic
commit
653b556ed6
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      lib/ui/viewer/file/thumbnail_widget.dart

+ 4 - 2
lib/ui/viewer/file/thumbnail_widget.dart

@@ -63,7 +63,7 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {
 
   @override
   void initState() {
-    changeSmallestSideToThumbnailSize();
+    assignOptimizedImageDimensions();
     super.initState();
   }
 
@@ -86,7 +86,9 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {
     }
   }
 
-  void changeSmallestSideToThumbnailSize() {
+  ///Assigned dimension will be the size of a grid item. The size will be
+  ///assigned to the side which is smaller in dimension.
+  void assignOptimizedImageDimensions() {
     if (widget.file!.width == 0 || widget.file!.height == 0) {
       return;
     }