Hide the dialog on page load

This commit is contained in:
vishnukvmd 2024-03-20 14:05:23 +05:30
parent 61d5f3189b
commit b769c428eb

View File

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