Prechádzať zdrojové kódy

Added padding between missing GridViews

ashilkn 2 rokov pred
rodič
commit
9fa8da177d

+ 2 - 0
lib/core/constants.dart

@@ -63,3 +63,5 @@ const kilometersPerDegree = 111.16;
 const radiusValues = <double>[2, 10, 20, 40, 80, 200, 400, 1200];
 
 const defaultRadiusValueIndex = 4;
+
+const galleryGridSpacing = 2.0;

+ 1 - 1
lib/ui/huge_listview/lazy_loading_gallery.dart

@@ -406,7 +406,7 @@ class _LazyLoadingGridViewState extends State<LazyLoadingGridView> {
         mainAxisSpacing: 2,
         crossAxisCount: widget.photoGridSize!,
       ),
-      padding: const EdgeInsets.all(0),
+      padding: const EdgeInsets.symmetric(vertical: (galleryGridSpacing / 2)),
     );
   }