mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-25 08:38:45 +00:00
handle new eth wallet navigation on desktop
This commit is contained in:
parent
cbe6a5caf8
commit
c5a5853431
1 changed files with 21 additions and 5 deletions
|
@ -112,11 +112,27 @@ class _VerifyRecoveryPhraseViewState
|
|||
|
||||
if (mounted) {
|
||||
if (isDesktop) {
|
||||
Navigator.of(context).popUntil(
|
||||
ModalRoute.withName(
|
||||
DesktopHomeView.routeName,
|
||||
),
|
||||
);
|
||||
if (isCreateSpecialEthWallet) {
|
||||
Navigator.of(context).popUntil(
|
||||
ModalRoute.withName(
|
||||
SelectWalletForTokenView.routeName,
|
||||
),
|
||||
);
|
||||
} else {
|
||||
Navigator.of(context).popUntil(
|
||||
ModalRoute.withName(
|
||||
DesktopHomeView.routeName,
|
||||
),
|
||||
);
|
||||
if (widget.manager.coin == Coin.ethereum) {
|
||||
unawaited(
|
||||
Navigator.of(context).pushNamed(
|
||||
EditWalletTokensView.routeName,
|
||||
arguments: widget.manager.walletId,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (isCreateSpecialEthWallet) {
|
||||
Navigator.of(context).popUntil(
|
||||
|
|
Loading…
Reference in a new issue