Fix: Dismiss dialog before navigation
This commit is contained in:
parent
1d5b3a2090
commit
56d8173510
1 changed files with 1 additions and 1 deletions
|
@ -184,6 +184,7 @@ class BillingService {
|
|||
try {
|
||||
final String jwtToken = await UserService.instance.getFamiliesToken();
|
||||
final bool familyExist = userDetails.isPartOfFamily();
|
||||
await dialog.hide();
|
||||
await Navigator.of(context).push(
|
||||
MaterialPageRoute(
|
||||
builder: (BuildContext context) {
|
||||
|
@ -198,6 +199,5 @@ class BillingService {
|
|||
await dialog.hide();
|
||||
await showGenericErrorDialog(context: context, error: e);
|
||||
}
|
||||
await dialog.hide();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue