mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 01:37:54 +00:00
minor bug fix for infinite loading on linux
This commit is contained in:
parent
94c606f6c3
commit
b0336ef162
1 changed files with 8 additions and 1 deletions
|
@ -96,7 +96,14 @@ class AddWalletButton extends StatelessWidget {
|
|||
.extension<StackColors>()!
|
||||
.getPrimaryEnabledButtonColor(context),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pushNamed(AddWalletView.routeName);
|
||||
if (isDesktop) {
|
||||
Navigator.of(
|
||||
context,
|
||||
rootNavigator: true,
|
||||
).pushNamed(AddWalletView.routeName);
|
||||
} else {
|
||||
Navigator.of(context).pushNamed(AddWalletView.routeName);
|
||||
}
|
||||
},
|
||||
child: Center(
|
||||
child: Container(
|
||||
|
|
Loading…
Reference in a new issue