Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Use 1px gallery spacing

ashil-pilotdfc9dc39fc82
diff --git a/mobile/apps/photos/changes/reduce-gallery-grid-spacing.md b/mobile/apps/photos/changes/reduce-gallery-grid-spacing.md
new file mode 100644
index 0000000000..c04a475553
--- /dev/null
+++ b/mobile/apps/photos/changes/reduce-gallery-grid-spacing.md
@@ -0,0 +1 @@
+- Reduced the spacing between photos in the gallery.
diff --git a/mobile/apps/photos/lib/core/constants.dart b/mobile/apps/photos/lib/core/constants.dart
index 92e37e5794..d523d2429a 100644
--- a/mobile/apps/photos/lib/core/constants.dart
+++ b/mobile/apps/photos/lib/core/constants.dart
@@ -63,7 +63,7 @@ const defaultRadiusValues = <double>[1, 2, 10, 20, 40, 80, 200, 400, 1200];
const defaultRadiusValue = 40.0;
-const galleryGridSpacing = 2.0;
+const galleryGridSpacing = 1.0;
const kSearchSectionLimit = 9;
diff --git a/mobile/apps/photos/lib/models/gallery/gallery_groups.dart b/mobile/apps/photos/lib/models/gallery/gallery_groups.dart
index f203247a17..dbd48e7831 100644
--- a/mobile/apps/photos/lib/models/gallery/gallery_groups.dart
+++ b/mobile/apps/photos/lib/models/gallery/gallery_groups.dart
@@ -36,6 +36,7 @@ class GalleryGroups {
final bool sortOrderAsc;
final double widthAvailable;
final double groupHeaderExtent;
+ static const double spacing = galleryGridSpacing;
GalleryGroups({
required this.allFiles,
required this.groupType,
@@ -60,8 +61,6 @@ class GalleryGroups {
}
}
- static const double spacing = 2.0;
-
late final int crossAxisCount;
late final GalleryLayoutType layoutType;
late final List<SectionLayout> _groupLayouts;