Skip to content

armgit / ente

Public Imported from GitHub
0

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

Clean up

ashilknf32b98c1bcf1
diff --git a/mobile/apps/photos/lib/ui/collections/collection_list_page.dart b/mobile/apps/photos/lib/ui/collections/collection_list_page.dart
index 607d89413a..e353c4a7b8 100644
--- a/mobile/apps/photos/lib/ui/collections/collection_list_page.dart
+++ b/mobile/apps/photos/lib/ui/collections/collection_list_page.dart
@@ -124,7 +124,6 @@ class _CollectionListPageState extends State<CollectionListPage> {
enableSelectionMode: enableSelectionMode,
albumViewType: albumViewType ?? AlbumViewType.grid,
selectedAlbums: _selectedAlbum,
- scrollBottomSafeArea: 140,
),
],
),
diff --git a/mobile/apps/photos/lib/ui/home/home_gallery_widget.dart b/mobile/apps/photos/lib/ui/home/home_gallery_widget.dart
index 0ece05ba72..b398d41323 100644
--- a/mobile/apps/photos/lib/ui/home/home_gallery_widget.dart
+++ b/mobile/apps/photos/lib/ui/home/home_gallery_widget.dart
@@ -127,8 +127,6 @@ class _HomeGalleryWidgetState extends State<HomeGalleryWidget> {
selectedFiles: widget.selectedFiles,
header: widget.header,
footer: widget.footer,
- // scrollSafe area -> SafeArea + Preserver more + Nav Bar buttons
- scrollBottomSafeArea: bottomSafeArea + 180,
reloadDebounceTime: const Duration(seconds: 2),
reloadDebounceExecutionInterval: const Duration(seconds: 5),
);
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
index a37f5a66ad..1550c680fa 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
@@ -52,7 +52,6 @@ class Gallery extends StatefulWidget {
final Widget? footer;
final Widget emptyState;
final String? albumName;
- final double scrollBottomSafeArea;
final bool enableFileGrouping;
final Widget loadingWidget;
final bool disableScroll;
@@ -86,7 +85,6 @@ class Gallery extends StatefulWidget {
this.header,
this.footer = const SizedBox(height: 212),
this.emptyState = const EmptyState(),
- this.scrollBottomSafeArea = 120.0,
this.albumName = '',
this.groupType = GroupType.day,
this.enableFileGrouping = true,
@@ -445,6 +443,8 @@ class GalleryState extends State<Gallery> {
_logger.info("Building Gallery ${widget.tagPrefix}");
+ final double bottomPadding = MediaQuery.paddingOf(context).bottom + 180;
+
final galleryGroups = GalleryGroups(
allFiles: _allGalleryFiles,
groupType: _groupType,
@@ -499,7 +499,7 @@ class GalleryState extends State<Gallery> {
inUseNotifier: scrollBarInUseNotifier,
heighOfViewport: MediaQuery.sizeOf(context).height,
topPadding: groupHeaderExtent!,
- bottomPadding: widget.scrollBottomSafeArea,
+ bottomPadding: bottomPadding,
child: NotificationListener<SizeChangedLayoutNotification>(
onNotification: (notification) {
final renderBox = _headerKey.currentContext