mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
MyStackView tab after a restore backup
This commit is contained in:
parent
66ff5a437d
commit
6bbabcd729
1 changed files with 16 additions and 1 deletions
|
@ -25,6 +25,9 @@ import 'package:stackwallet/widgets/icon_widgets/addressbook_icon.dart';
|
|||
import 'package:stackwallet/widgets/loading_indicator.dart';
|
||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||
|
||||
import '../../../../../pages_desktop_specific/home/desktop_home_view.dart';
|
||||
import '../../../../../pages_desktop_specific/home/desktop_menu.dart';
|
||||
import '../../../../../providers/desktop/current_desktop_menu_item.dart';
|
||||
import '../../../../../widgets/desktop/primary_button.dart';
|
||||
|
||||
class StackRestoreProgressView extends ConsumerStatefulWidget {
|
||||
|
@ -685,7 +688,19 @@ class _StackRestoreProgressViewState
|
|||
enabled: true,
|
||||
label: "Done",
|
||||
onPressed: () async {
|
||||
Navigator.of(context).pop();
|
||||
DesktopMenuItemId keyID =
|
||||
DesktopMenuItemId.myStack;
|
||||
|
||||
ref
|
||||
.read(currentDesktopMenuItemProvider
|
||||
.state)
|
||||
.state = keyID;
|
||||
|
||||
Navigator.of(context, rootNavigator: true)
|
||||
.popUntil(
|
||||
ModalRoute.withName(
|
||||
DesktopHomeView.routeName),
|
||||
);
|
||||
},
|
||||
)
|
||||
: SecondaryButton(
|
||||
|
|
Loading…
Reference in a new issue