mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-29 21:55:58 +00:00
routing bugfix
This commit is contained in:
parent
b0c179666c
commit
1d3955cc97
1 changed files with 14 additions and 2 deletions
|
@ -94,8 +94,20 @@ class _VerifyRecoveryPhraseViewState
|
|||
.addWallet(walletId: _manager.walletId, manager: _manager);
|
||||
|
||||
if (mounted) {
|
||||
unawaited(Navigator.of(context)
|
||||
.pushNamedAndRemoveUntil(HomeView.routeName, (route) => false));
|
||||
if (isDesktop) {
|
||||
Navigator.of(context).popUntil(
|
||||
ModalRoute.withName(
|
||||
DesktopHomeView.routeName,
|
||||
),
|
||||
);
|
||||
} else {
|
||||
unawaited(
|
||||
Navigator.of(context).pushNamedAndRemoveUntil(
|
||||
HomeView.routeName,
|
||||
(route) => false,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
unawaited(showFloatingFlushBar(
|
||||
|
|
Loading…
Reference in a new issue