minor bug fix for infinite loading on linux

This commit is contained in:
Marco 2022-10-04 13:53:57 -06:00
parent 94c606f6c3
commit b0336ef162

View file

@ -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(