π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Avoid duplicate gallery app bar geometry resolution
ashilkn58e6416b1429
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 6324005964..424fdac486 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@@ -68,27 +68,16 @@ class GalleryAppBarWidget extends StatefulWidget {static const double _defaultBackIconSize = IconSizes.medium;static const double _sliverExpandedHeight = 92.0;- static double sliverPinnedHeight(- BuildContext context, {- required bool isHierarchicalSearchable,- }) {- final bottomHeight = isHierarchicalSearchable- ? AppBarFilterChips.preferredHeight(context)- : 0.0;- final geometry = SliverAppBarComponent.resolveGeometry(- context,- subtitle: null,- expandedHeight: _sliverExpandedHeight,- collapsedHeight: toolbarHeight,- titleBuilderHeight: null,- bottomHeight: bottomHeight,- );- return geometry.minExtent;- }-- static double sliverExpandedHeight(- BuildContext context, {+ static GalleryAppBarConfig sliverConfig(+ BuildContext context,+ GalleryType type,+ String? title,+ SelectedFiles selectedFiles, {required bool isHierarchicalSearchable,+ DeviceCollection? deviceCollection,+ Collection? collection,+ bool isFromCollectPhotos = false,+ List<EnteFile>? files,}) {final bottomHeight = isHierarchicalSearchable? AppBarFilterChips.preferredHeight(context)@@ -101,20 +90,6 @@ class GalleryAppBarWidget extends StatefulWidget {titleBuilderHeight: null,bottomHeight: bottomHeight,);- return geometry.maxExtent;- }-- static GalleryAppBarConfig sliverConfig(- BuildContext context,- GalleryType type,- String? title,- SelectedFiles selectedFiles, {- required bool isHierarchicalSearchable,- DeviceCollection? deviceCollection,- Collection? collection,- bool isFromCollectPhotos = false,- List<EnteFile>? files,- }) {return GalleryAppBarConfig(sliverBuilder: (_) => GalleryAppBarWidget(type,@@ -126,14 +101,8 @@ class GalleryAppBarWidget extends StatefulWidget {files: files,asSliver: true,),- pinnedHeight: sliverPinnedHeight(- context,- isHierarchicalSearchable: isHierarchicalSearchable,- ),- expandedHeight: sliverExpandedHeight(- context,- isHierarchicalSearchable: isHierarchicalSearchable,- ),+ pinnedHeight: geometry.minExtent,+ expandedHeight: geometry.maxExtent,);}