Removed swipe back on preseed and seed screens for new wallet.

wownero
M 4 years ago
parent e745e56f2d
commit b309d01892

@ -22,51 +22,46 @@ class PreSeedPage extends BasePage {
final image = final image =
getIt.get<SettingsStore>().isDarkTheme ? imageDark : imageLight; getIt.get<SettingsStore>().isDarkTheme ? imageDark : imageLight;
return Container( return WillPopScope(
padding: EdgeInsets.all(24), onWillPop: () async => false,
child: Column( child: Container(
children: [ padding: EdgeInsets.all(24),
Flexible( child: Column(
flex: 2, children: [
child: AspectRatio( Flexible(
aspectRatio: 1, flex: 2,
child: FittedBox(child: image, fit: BoxFit.contain))), child: AspectRatio(
Flexible( aspectRatio: 1,
flex: 3, child: FittedBox(child: image, fit: BoxFit.contain))),
child: Column( Flexible(
mainAxisAlignment: MainAxisAlignment.spaceBetween, flex: 3,
children: [ child: Column(
Padding( mainAxisAlignment: MainAxisAlignment.spaceBetween,
padding: children: [
EdgeInsets.only(top: 70, left: 16, right: 16), Padding(
child: Text( padding: EdgeInsets.only(top: 70, left: 16, right: 16),
S.of(context).pre_seed_description, child: Text(
textAlign: TextAlign.center, S.of(context).pre_seed_description,
style: TextStyle( textAlign: TextAlign.center,
fontSize: 14, style: TextStyle(
fontWeight: FontWeight.normal, fontSize: 14,
color: Theme.of(context) fontWeight: FontWeight.normal,
.primaryTextTheme color: Theme.of(context)
.caption .primaryTextTheme
.color), .caption
), .color),
), ),
PrimaryButton( ),
onPressed: () => PrimaryButton(
Navigator.of(context).popAndPushNamed(Routes.seed, onPressed: () => Navigator.of(context)
arguments: true), .popAndPushNamed(Routes.seed, arguments: true),
text: S.of(context).pre_seed_button_text, text: S.of(context).pre_seed_button_text,
color: Theme.of(context) color: Theme.of(context).accentTextTheme.body2.color,
.accentTextTheme textColor: Colors.white)
.body2 ],
.color, ))
textColor: Colors.white) ],
], ),
) ));
)
],
),
);
} }
}
}

@ -86,7 +86,7 @@ class WalletSeedPage extends BasePage {
final image = final image =
getIt.get<SettingsStore>().isDarkTheme ? imageDark : imageLight; getIt.get<SettingsStore>().isDarkTheme ? imageDark : imageLight;
return Container( return WillPopScope(onWillPop: () async => false, child: Container(
padding: EdgeInsets.all(24), padding: EdgeInsets.all(24),
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
@ -194,6 +194,6 @@ class WalletSeedPage extends BasePage {
], ],
)) ))
], ],
)); )));
} }
} }

Loading…
Cancel
Save