π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Change names
ashilkn2b258f984d89
diff --git a/mobile/lib/models/gallery/gallery_sections.dart b/mobile/lib/models/gallery/gallery_sections.dartindex ddfee9da01..2ab6d80b17 100644--- a/mobile/lib/models/gallery/gallery_sections.dart+++ b/mobile/lib/models/gallery/gallery_sections.dart@@ -12,7 +12,7 @@ import "package:photos/ui/viewer/gallery/component/group/group_header_widget.darimport "package:photos/ui/viewer/gallery/component/group/type.dart";import "package:uuid/uuid.dart";-class GallerySections {+class GalleryGroups {final List<EnteFile> allFiles;final GroupType groupType;final SelectedFiles? selectedFiles;@@ -24,7 +24,7 @@ class GallerySections {final double widthAvailable;final double headerExtent;final BuildContext context;- GallerySections({+ GalleryGroups({required this.allFiles,required this.groupType,required this.widthAvailable,@@ -57,11 +57,11 @@ class GallerySections {crossAxisCount = localSettings.getPhotoGridSize();}- List<FixedExtentSectionLayout> getSectionLayouts() {+ List<FixedExtentSectionLayout> getGroupLayouts() {int currentIndex = 0;double currentOffset = 0.0;final tileHeight = widthAvailable / crossAxisCount;- final sectionLayouts = <FixedExtentSectionLayout>[];+ final groupLayouts = <FixedExtentSectionLayout>[];final groupIDs = _groupIdToFilesMap.keys;@@ -76,7 +76,7 @@ class GallerySections {minOffset + (numberOfGridRows * tileHeight) + headerExtent;int currentGroupIndex = 0;- sectionLayouts.add(+ groupLayouts.add(FixedExtentSectionLayout(firstIndex: firstIndex,lastIndex: lastIndex,@@ -132,7 +132,7 @@ class GallerySections {currentOffset = maxOffset;}- return sectionLayouts;+ return groupLayouts;}void _buildGroups() {diff --git a/mobile/lib/ui/viewer/gallery/gallery.dart b/mobile/lib/ui/viewer/gallery/gallery.dartindex 9744634cf4..003c0eb13a 100644--- a/mobile/lib/ui/viewer/gallery/gallery.dart+++ b/mobile/lib/ui/viewer/gallery/gallery.dart@@ -424,7 +424,7 @@ class GalleryState extends State<Gallery> {builder: (context, snapshot) {if (snapshot.hasData) {return SectionedListSliver(- sectionLayouts: GallerySections(+ sectionLayouts: GalleryGroups(allFiles: _allGalleryFiles,groupType: widget.groupType,widthAvailable: MediaQuery.sizeOf(context).width,@@ -432,7 +432,7 @@ class GalleryState extends State<Gallery> {selectedFiles: widget.selectedFiles,tagPrefix: widget.tagPrefix,headerExtent: snapshot.data!,- ).getSectionLayouts(),+ ).getGroupLayouts(),);} else {return const SliverFillRemaining();