mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
mobile eth restore flow navigation bug fix
This commit is contained in:
parent
240f091892
commit
b3b4d803a6
1 changed files with 20 additions and 10 deletions
|
@ -11,6 +11,7 @@ import 'package:stackwallet/pages/add_wallet_views/add_token_view/add_custom_tok
|
|||
import 'package:stackwallet/pages/add_wallet_views/add_token_view/sub_widgets/add_token_list.dart';
|
||||
import 'package:stackwallet/pages/add_wallet_views/add_token_view/sub_widgets/add_token_list_element.dart';
|
||||
import 'package:stackwallet/pages/add_wallet_views/add_token_view/sub_widgets/add_token_text.dart';
|
||||
import 'package:stackwallet/pages/home_view/home_view.dart';
|
||||
import 'package:stackwallet/pages_desktop_specific/desktop_home_view.dart';
|
||||
import 'package:stackwallet/providers/global/wallets_provider.dart';
|
||||
import 'package:stackwallet/services/coins/ethereum/ethereum_wallet.dart';
|
||||
|
@ -97,9 +98,17 @@ class _EditWalletTokensViewState extends ConsumerState<EditWalletTokensView> {
|
|||
if (widget.contractsToMarkSelected == null) {
|
||||
Navigator.of(context).pop(42);
|
||||
} else {
|
||||
if (isDesktop) {
|
||||
Navigator.of(context).popUntil(
|
||||
ModalRoute.withName(DesktopHomeView.routeName),
|
||||
);
|
||||
} else {
|
||||
await Navigator.of(context).pushNamedAndRemoveUntil(
|
||||
HomeView.routeName,
|
||||
(route) => false,
|
||||
);
|
||||
}
|
||||
if (mounted) {
|
||||
unawaited(
|
||||
showFloatingFlushBar(
|
||||
type: FlushBarType.success,
|
||||
|
@ -110,6 +119,7 @@ class _EditWalletTokensViewState extends ConsumerState<EditWalletTokensView> {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _addToken() async {
|
||||
EthContract? contract;
|
||||
|
|
Loading…
Reference in a new issue