mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-21 06:38:49 +00:00
Removed swipe back on preseed and seed screens for new wallet.
This commit is contained in:
parent
e745e56f2d
commit
b309d01892
2 changed files with 44 additions and 49 deletions
|
@ -22,7 +22,9 @@ class PreSeedPage 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: [
|
children: [
|
||||||
|
@ -37,8 +39,7 @@ class PreSeedPage extends BasePage {
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
padding:
|
padding: EdgeInsets.only(top: 70, left: 16, right: 16),
|
||||||
EdgeInsets.only(top: 70, left: 16, right: 16),
|
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).pre_seed_description,
|
S.of(context).pre_seed_description,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
|
@ -52,21 +53,15 @@ class PreSeedPage extends BasePage {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
PrimaryButton(
|
PrimaryButton(
|
||||||
onPressed: () =>
|
onPressed: () => Navigator.of(context)
|
||||||
Navigator.of(context).popAndPushNamed(Routes.seed,
|
.popAndPushNamed(Routes.seed, arguments: true),
|
||||||
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
|
|
||||||
.body2
|
|
||||||
.color,
|
|
||||||
textColor: Colors.white)
|
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…
Reference in a new issue