fix nav desktop nav error

This commit is contained in:
sneurlax 2023-01-19 14:20:27 -06:00
parent 7191e502db
commit 98a9804059

View file

@ -111,7 +111,7 @@ class _BuyFormState extends ConsumerState<BuyForm> {
await _loadSimplexCurrencies();
shouldPop = true;
if (mounted) {
Navigator.of(context).pop();
Navigator.of(context, rootNavigator: isDesktop).pop();
}
}
@ -215,7 +215,7 @@ class _BuyFormState extends ConsumerState<BuyForm> {
await _loadSimplexCurrencies();
shouldPop = true;
if (mounted) {
Navigator.of(context).pop();
Navigator.of(context, rootNavigator: isDesktop).pop();
}
}
@ -366,7 +366,7 @@ class _BuyFormState extends ConsumerState<BuyForm> {
await _loadQuote(quote);
shouldPop = true;
if (mounted) {
Navigator.of(context).pop();
Navigator.of(context, rootNavigator: isDesktop).pop();
}
// }