π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mobile][photos] make trash tabs sticky
Priyanshu Dangare9ba02a0712dd
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dartindex a68d669a7a..e9b1cb0cdc 100644--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dart+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dart@@ -74,6 +74,8 @@ class GalleryAppBarWidget extends StatefulWidget {Future<void> Function()? onDisableDeviceFolderBackup,Collection? collection,List<EnteFile>? files,+ Widget? bottom,+ double? bottomPreferredHeight,}) {return GalleryAppBarConfig(sliverBuilder: (_) => GalleryAppBarWidget._(@@ -86,6 +88,8 @@ class GalleryAppBarWidget extends StatefulWidget {onDisableDeviceFolderBackup: onDisableDeviceFolderBackup,collection: collection,files: files,+ bottom: bottom,+ bottomPreferredHeight: bottomPreferredHeight,),geometryBuilder: (context) => _resolveSliverGeometry(context,@@ -132,6 +136,8 @@ class GalleryAppBarWidget extends StatefulWidget {final Future<void> Function()? onDisableDeviceFolderBackup;final Collection? collection;final List<EnteFile>? files;+ final Widget? bottom;+ final double? bottomPreferredHeight;const GalleryAppBarWidget._(this.type,@@ -143,6 +149,8 @@ class GalleryAppBarWidget extends StatefulWidget {this.onDisableDeviceFolderBackup,this.collection,this.files,+ this.bottom,+ this.bottomPreferredHeight,});@override@@ -269,7 +277,19 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {widget.collection?.displayDescription,);- if (!isHierarchicalSearchable) {+ if (widget.bottom != null) {+ return _GallerySliverAppBar(+ title: _appBarTitle,+ subtitle: widget.subtitle,+ actions: _getDefaultActions(context),+ bottom: PreferredSize(+ preferredSize: Size.fromHeight(widget.bottomPreferredHeight!),+ child: widget.bottom!,+ ),+ );+ }++ if (!isHierarchicalSearchable && widget.bottom == null) {return _GallerySliverAppBar(title: _appBarTitle,subtitle: widget.subtitle,diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/trash_page.dart b/mobile/apps/photos/lib/ui/viewer/gallery/trash_page.dartindex 3b4a5c11d7..ea6de10fb3 100644--- a/mobile/apps/photos/lib/ui/viewer/gallery/trash_page.dart+++ b/mobile/apps/photos/lib/ui/viewer/gallery/trash_page.dart@@ -71,13 +71,15 @@ class _TrashPageState extends State<TrashPage> {duration: const Duration(milliseconds: 150),child: Gallery(key: ValueKey(_isOnEnteTrash ? 'ente_trash_page' : 'device_trash_page'),- header: header,+ enableFileGrouping: false,appBar: GalleryAppBarWidget.sliverConfig(GalleryType.trash,l10n.trash,_selectedFiles,subtitle:l10n.itemsShowTheNumberOfDaysRemainingBeforePermanentDeletion,+ bottom: header,+ bottomPreferredHeight: header == null ? null : 8 + 44 + 8,),asyncLoader: _asyncLoader,reloadEvent: Bus.instance.on<FilesUpdatedEvent>().where(