diff --git a/mobile/lib/ui/viewer/people/cluster_page.dart b/mobile/lib/ui/viewer/people/cluster_page.dart index 10cb5ceba..172dc60bd 100644 --- a/mobile/lib/ui/viewer/people/cluster_page.dart +++ b/mobile/lib/ui/viewer/people/cluster_page.dart @@ -147,6 +147,19 @@ class _ClusterPageState extends State { ), body: Column( children: [ + Expanded( + child: Stack( + alignment: Alignment.bottomCenter, + children: [ + gallery, + FileSelectionOverlayBar( + ClusterPage.overlayType, + _selectedFiles, + clusterID: widget.clusterID, + ), + ], + ), + ), showNamingBanner ? Dismissible( key: const Key("namingBanner"), @@ -196,19 +209,6 @@ class _ClusterPageState extends State { ), ) : const SizedBox.shrink(), - Expanded( - child: Stack( - alignment: Alignment.bottomCenter, - children: [ - gallery, - FileSelectionOverlayBar( - ClusterPage.overlayType, - _selectedFiles, - clusterID: widget.clusterID, - ), - ], - ), - ), ], ), ); diff --git a/mobile/lib/ui/viewer/people/people_page.dart b/mobile/lib/ui/viewer/people/people_page.dart index 8a00d5322..67ab8ae80 100644 --- a/mobile/lib/ui/viewer/people/people_page.dart +++ b/mobile/lib/ui/viewer/people/people_page.dart @@ -127,53 +127,6 @@ class _PeoplePageState extends State { final personFiles = snapshot.data as List; return Column( children: [ - showSuggestionBanner - ? Dismissible( - key: const Key("suggestionBanner"), - direction: DismissDirection.horizontal, - onDismissed: (direction) { - setState(() { - userDismissedSuggestionBanner = true; - }); - }, - child: RepaintBoundary( - child: Padding( - padding: const EdgeInsets.symmetric( - vertical: 8.0, - horizontal: 8.0, - ), - child: NotificationWidget( - startIcon: Icons.star_border_rounded, - actionIcon: Icons.search_outlined, - text: "Review suggestions", - subText: - "Improve the results", - type: NotificationType.greenBanner, - onTap: () async { - unawaited( - Navigator.of(context).push( - MaterialPageRoute( - builder: (context) => - PersonReviewClusterSuggestion( - widget.person, - ), - ), - ), - ); - }, - ), - ) - .animate( - onPlay: (controller) => controller.repeat(), - ) - .shimmer( - duration: 1000.ms, - delay: 3200.ms, - size: 0.6, - ), - ), - ) - : const SizedBox.shrink(), Expanded( child: Stack( alignment: Alignment.bottomCenter, @@ -215,6 +168,52 @@ class _PeoplePageState extends State { ], ), ), + showSuggestionBanner + ? Dismissible( + key: const Key("suggestionBanner"), + direction: DismissDirection.horizontal, + onDismissed: (direction) { + setState(() { + userDismissedSuggestionBanner = true; + }); + }, + child: RepaintBoundary( + child: Padding( + padding: const EdgeInsets.symmetric( + vertical: 8.0, + horizontal: 8.0, + ), + child: NotificationWidget( + startIcon: Icons.star_border_rounded, + actionIcon: Icons.search_outlined, + text: "Review suggestions", + subText: "Improve the results", + type: NotificationType.greenBanner, + onTap: () async { + unawaited( + Navigator.of(context).push( + MaterialPageRoute( + builder: (context) => + PersonReviewClusterSuggestion( + widget.person, + ), + ), + ), + ); + }, + ), + ) + .animate( + onPlay: (controller) => controller.repeat(), + ) + .shimmer( + duration: 1000.ms, + delay: 3200.ms, + size: 0.6, + ), + ), + ) + : const SizedBox.shrink(), ], ); } else if (snapshot.hasError) {