Fix: Dismiss dialog before navigation

This commit is contained in:
Neeraj Gupta 2023-12-13 08:51:12 +05:30
parent 1d5b3a2090
commit 56d8173510

View file

@ -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();
}
}