Change screen for new wallets for monero.com app

This commit is contained in:
M
2022-01-03 20:25:48 +02:00
parent ff7700aa1f
commit 800c3ec14a
4 changed files with 19 additions and 7 deletions
@@ -60,7 +60,7 @@ class _WalletNameFormState extends State<WalletNameForm> {
_stateReaction ??=
reaction((_) => _walletNewVM.state, (ExecutionState state) {
if (state is ExecutedSuccessfullyState) {
Navigator.of(context).pushNamed(Routes.seed, arguments: true);
Navigator.of(context).pushNamed(Routes.preSeed, arguments: _walletNewVM.type);
}
if (state is FailureState) {
@@ -173,8 +173,13 @@ class WalletListBodyState extends State<WalletListBody> {
EdgeInsets.only(bottom: 24, right: 24, left: 24),
bottomSection: Column(children: <Widget>[
PrimaryImageButton(
onPressed: () =>
Navigator.of(context).pushNamed(Routes.newWalletType),
onPressed: () {
if (isMoneroOnly) {
Navigator.of(context).pushNamed(Routes.newWallet, arguments: WalletType.monero);
} else {
Navigator.of(context).pushNamed(Routes.newWalletType);
}
},
image: newWalletImage,
text: S.of(context).wallet_list_create_new_wallet,
color: Theme.of(context).accentTextTheme.body2.color,