diff --git a/mobile/lib/ui/payment/store_subscription_page.dart b/mobile/lib/ui/payment/store_subscription_page.dart index fc7fa5adeb..86d29fd715 100644 --- a/mobile/lib/ui/payment/store_subscription_page.dart +++ b/mobile/lib/ui/payment/store_subscription_page.dart @@ -309,7 +309,7 @@ class _StoreSubscriptionPageState extends State { Padding( padding: const EdgeInsets.fromLTRB(16, 40, 16, 4), child: MenuItemWidget( - captionedTextWidget: CaptionedTextWidget( + captionedTextWidget: const CaptionedTextWidget( title: "Manage payment method", ), menuItemColor: colorScheme.fillFaint, diff --git a/mobile/lib/ui/payment/stripe_subscription_page.dart b/mobile/lib/ui/payment/stripe_subscription_page.dart index 7ab1a0f9cc..93479b8038 100644 --- a/mobile/lib/ui/payment/stripe_subscription_page.dart +++ b/mobile/lib/ui/payment/stripe_subscription_page.dart @@ -55,7 +55,6 @@ class _StripeSubscriptionPageState extends State { // indicates if user's subscription plan is still active late bool _hasActiveSubscription; bool _hideCurrentPlanSelection = false; - late FreePlan _freePlan; List _plans = []; bool _hasLoadedData = false; bool _isLoading = false; @@ -92,7 +91,6 @@ class _StripeSubscriptionPageState extends State { // _filterPlansForUI is used for initializing initState & plan toggle states Future _filterStripeForUI() async { final billingPlans = await _billingService.getBillingPlans(); - _freePlan = billingPlans.freePlan; _plans = billingPlans.plans.where((plan) { if (plan.stripeID.isEmpty) { return false; @@ -279,7 +277,7 @@ class _StripeSubscriptionPageState extends State { Padding( padding: const EdgeInsets.fromLTRB(16, 2, 16, 2), child: MenuItemWidget( - captionedTextWidget: CaptionedTextWidget( + captionedTextWidget: const CaptionedTextWidget( title: "Manage payment method", ), menuItemColor: colorScheme.fillFaint,