π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Remove padding for banner
laurenspriem2dc17dcec89a
diff --git a/mobile/lib/ui/viewer/people/cluster_page.dart b/mobile/lib/ui/viewer/people/cluster_page.dartindex 172dc60bde..f4069fe705 100644--- a/mobile/lib/ui/viewer/people/cluster_page.dart+++ b/mobile/lib/ui/viewer/people/cluster_page.dart@@ -170,35 +170,29 @@ class _ClusterPageState extends State<ClusterPage> {});},child: RepaintBoundary(- child: Padding(- padding: const EdgeInsets.symmetric(- vertical: 8.0,- horizontal: 8.0,- ),- child: NotificationWidget(- startIcon: Icons.person_add_outlined,- actionIcon: Icons.add_outlined,- text: S.of(context).addAName,- subText: S.of(context).findPeopleByName,- // text: S.of(context).addAName,- // subText: S.of(context).findPersonsByName,- type: NotificationType.greenBanner,- onTap: () async {- if (widget.personID == null) {- final result = await showAssignPersonAction(- context,- clusterID: widget.clusterID,- );- if (result != null && result is PersonEntity) {- Navigator.pop(context);- // ignore: unawaited_futures- routeToPage(context, PeoplePage(person: result));- }- } else {- showShortToast(context, "No personID or clusterID");+ child: NotificationWidget(+ startIcon: Icons.person_add_outlined,+ actionIcon: Icons.add_outlined,+ text: S.of(context).addAName,+ subText: S.of(context).findPeopleByName,+ // text: S.of(context).addAName,+ // subText: S.of(context).findPersonsByName,+ type: NotificationType.greenBanner,+ onTap: () async {+ if (widget.personID == null) {+ final result = await showAssignPersonAction(+ context,+ clusterID: widget.clusterID,+ );+ if (result != null && result is PersonEntity) {+ Navigator.pop(context);+ // ignore: unawaited_futures+ routeToPage(context, PeoplePage(person: result));}- },- ),+ } else {+ showShortToast(context, "No personID or clusterID");+ }+ },).animate(onPlay: (controller) => controller.repeat()).shimmer(diff --git a/mobile/lib/ui/viewer/people/people_page.dart b/mobile/lib/ui/viewer/people/people_page.dartindex 67ab8ae802..37b23a5082 100644--- a/mobile/lib/ui/viewer/people/people_page.dart+++ b/mobile/lib/ui/viewer/people/people_page.dart@@ -178,30 +178,24 @@ class _PeoplePageState extends State<PeoplePage> {});},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,- ),+ 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(),