Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix spacing issue

ashilkn0d55ae1a6ded
diff --git a/mobile/lib/models/gallery/gallery_sections.dart b/mobile/lib/models/gallery/gallery_sections.dart
index 7897b4a487..7ba1212075 100644
--- a/mobile/lib/models/gallery/gallery_sections.dart
+++ b/mobile/lib/models/gallery/gallery_sections.dart
@@ -60,12 +60,12 @@ class GalleryGroups {
List<FixedExtentSectionLayout> getGroupLayouts() {
int currentIndex = 0;
double currentOffset = 0.0;
- final tileHeight = widthAvailable / crossAxisCount;
+ final tileHeight =
+ (widthAvailable - (crossAxisCount - 1) * spacing) / crossAxisCount;
final groupLayouts = <FixedExtentSectionLayout>[];
final groupIDs = _groupIdToFilesMap.keys;
- // TODO: spacing
for (final groupID in groupIDs) {
final filesInGroup = _groupIdToFilesMap[groupID]!;
final numberOfGridRows = (filesInGroup.length / crossAxisCount).ceil();