Kaynağa Gözat

Hide the dialog on page load

vishnukvmd 1 yıl önce
ebeveyn
işleme
b769c428eb

+ 1 - 1
mobile/lib/ui/payment/stripe_subscription_page.dart

@@ -331,6 +331,7 @@ class _StripeSubscriptionPageState extends State<StripeSubscriptionPage> {
     await _dialog.show();
     try {
       final String url = await _billingService.getStripeCustomerPortalUrl();
+      await _dialog.hide();
       await Navigator.of(context).push(
         MaterialPageRoute(
           builder: (BuildContext context) {
@@ -342,7 +343,6 @@ class _StripeSubscriptionPageState extends State<StripeSubscriptionPage> {
       await _dialog.hide();
       await showGenericErrorDialog(context: context, error: e);
     }
-    await _dialog.hide();
   }
 
   Widget _stripeRenewOrCancelButton() {