mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-05-03 03:12:18 +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>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonColor(context),
|
||||||
onPressed: () {
|
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: Center(
|
||||||
child: Container(
|
child: Container(
|
||||||
|
|
Loading…
Reference in a new issue