Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix subscription menu button press flicker

ashilkn3ce8f96b36e9
diff --git a/mobile/apps/photos/lib/ui/payment/store_subscription_page.dart b/mobile/apps/photos/lib/ui/payment/store_subscription_page.dart
index 638f28b080..59711bbd17 100644
--- a/mobile/apps/photos/lib/ui/payment/store_subscription_page.dart
+++ b/mobile/apps/photos/lib/ui/payment/store_subscription_page.dart
@@ -341,6 +341,7 @@ class _StoreSubscriptionPageState extends State<StoreSubscriptionPage> {
child: MenuItemWidgetNew(
title: "Manage payment method",
menuItemColor: colorScheme.fillFaint,
+ pressedColor: colorScheme.fillFaintPressed,
trailingWidget: Icon(
Icons.chevron_right_outlined,
color: colorScheme.strokeBase,
@@ -367,6 +368,7 @@ class _StoreSubscriptionPageState extends State<StoreSubscriptionPage> {
? AppLocalizations.of(context).familyPlans
: AppLocalizations.of(context).manageFamily,
menuItemColor: colorScheme.fillFaint,
+ pressedColor: colorScheme.fillFaintPressed,
trailingWidget: Icon(
Icons.chevron_right_outlined,
color: colorScheme.strokeBase,
diff --git a/mobile/apps/photos/lib/ui/payment/stripe_subscription_page.dart b/mobile/apps/photos/lib/ui/payment/stripe_subscription_page.dart
index 53aae4215f..373147930a 100644
--- a/mobile/apps/photos/lib/ui/payment/stripe_subscription_page.dart
+++ b/mobile/apps/photos/lib/ui/payment/stripe_subscription_page.dart
@@ -254,6 +254,7 @@ class _StripeSubscriptionPageState extends State<StripeSubscriptionPage> {
child: MenuItemWidgetNew(
title: AppLocalizations.of(context).manageFamily,
menuItemColor: colorScheme.fillFaint,
+ pressedColor: colorScheme.fillFaintPressed,
trailingWidget: Icon(
Icons.chevron_right_outlined,
color: colorScheme.strokeBase,
@@ -275,6 +276,7 @@ class _StripeSubscriptionPageState extends State<StripeSubscriptionPage> {
child: MenuItemWidgetNew(
title: "Manage payment method",
menuItemColor: colorScheme.fillFaint,
+ pressedColor: colorScheme.fillFaintPressed,
trailingWidget: Icon(
Icons.chevron_right_outlined,
color: colorScheme.strokeBase,
@@ -372,6 +374,7 @@ class _StripeSubscriptionPageState extends State<StripeSubscriptionPage> {
alwaysShowSuccessState: false,
surfaceExecutionStates: false,
menuItemColor: colorScheme.fillFaint,
+ pressedColor: colorScheme.fillFaintPressed,
trailingWidget: Icon(
Icons.chevron_right_outlined,
color: colorScheme.strokeBase,
diff --git a/mobile/apps/photos/lib/ui/payment/subscription_common_widgets.dart b/mobile/apps/photos/lib/ui/payment/subscription_common_widgets.dart
index 1abf3ab0ed..a18b1de21c 100644
--- a/mobile/apps/photos/lib/ui/payment/subscription_common_widgets.dart
+++ b/mobile/apps/photos/lib/ui/payment/subscription_common_widgets.dart
@@ -107,6 +107,7 @@ class SubFaqWidget extends StatelessWidget {
child: MenuItemWidgetNew(
title: AppLocalizations.of(context).faqs,
menuItemColor: colorScheme.fillFaint,
+ pressedColor: colorScheme.fillFaintPressed,
trailingWidget: Icon(
Icons.chevron_right_outlined,
color: colorScheme.strokeBase,