mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-18 10:11:03 +00:00
Merge pull request #738 from cypherstack/ui
Fix mobile wallet creation UI
This commit is contained in:
commit
3fce0dd687
1 changed files with 55 additions and 66 deletions
|
@ -77,16 +77,14 @@ class _NewWalletRecoveryPhraseWarningViewState
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
debugPrint("BUILD: $runtimeType");
|
debugPrint("BUILD: $runtimeType");
|
||||||
|
final options = ref.read(pNewWalletOptions.state).state;
|
||||||
|
|
||||||
|
final seedCount = options?.mnemonicWordsCount ??
|
||||||
|
Constants.defaultSeedPhraseLengthFor(coin: coin);
|
||||||
|
|
||||||
return MasterScaffold(
|
return MasterScaffold(
|
||||||
isDesktop: isDesktop,
|
isDesktop: isDesktop,
|
||||||
appBar: _buildAppBar(context),
|
appBar: isDesktop
|
||||||
body: _buildBody(context),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Widget _buildAppBar(BuildContext context) {
|
|
||||||
return isDesktop
|
|
||||||
? const DesktopAppBar(
|
? const DesktopAppBar(
|
||||||
isCompactHeight: false,
|
isCompactHeight: false,
|
||||||
leading: AppBarBackButton(),
|
leading: AppBarBackButton(),
|
||||||
|
@ -122,31 +120,22 @@ class _NewWalletRecoveryPhraseWarningViewState
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
);
|
),
|
||||||
}
|
body: SingleChildScrollView(
|
||||||
|
|
||||||
Widget _buildBody(BuildContext context) {
|
|
||||||
final options = ref.read(pNewWalletOptions.state).state;
|
|
||||||
|
|
||||||
final seedCount = options?.mnemonicWordsCount ??
|
|
||||||
Constants.defaultSeedPhraseLengthFor(coin: coin);
|
|
||||||
|
|
||||||
return SingleChildScrollView(
|
|
||||||
child: Center(
|
|
||||||
child: ConstrainedBox(
|
child: ConstrainedBox(
|
||||||
constraints:
|
constraints:
|
||||||
BoxConstraints(maxWidth: isDesktop ? 480 : double.infinity),
|
BoxConstraints(maxWidth: isDesktop ? 480 : double.infinity),
|
||||||
|
child: IntrinsicHeight(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(16),
|
padding: const EdgeInsets.all(16),
|
||||||
|
child: Center(
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: isDesktop
|
||||||
|
? CrossAxisAlignment.center
|
||||||
|
: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
Column(
|
/*if (isDesktop)
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
const Spacer(
|
||||||
children: [
|
|
||||||
if (isDesktop)
|
|
||||||
// TODO vertical centering/alignment.
|
|
||||||
/*const Spacer(
|
|
||||||
flex: 10,
|
flex: 10,
|
||||||
),*/
|
),*/
|
||||||
if (!isDesktop)
|
if (!isDesktop)
|
||||||
|
@ -694,7 +683,7 @@ class _NewWalletRecoveryPhraseWarningViewState
|
||||||
),*/
|
),*/
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue