Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #68 from MXCzkEVM/import_wallet_ui_fix
Browse files Browse the repository at this point in the history
Import wallet UI fix
  • Loading branch information
reasje authored Sep 25, 2023
2 parents 41b02e7 + 4b12521 commit 1e4b8ff
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/features/splash/import_wallet/import_wallet_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ class SplashImportWalletPage extends HookConsumerWidget {
valueListenable: presenter.mnemonicController,
builder: (ctx, mnemonicValue, _) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 24),
padding: const EdgeInsets.only(left: 24, right: 24, top: 16),
child: MxcButton.primaryWhite(
key: const Key('importWalletButton'),
title: FlutterI18n.translate(context, 'import_wallet')
.toUpperCase(),
title: FlutterI18n.translate(context, 'import_wallet'),
onTap: mnemonicValue.text.isNotEmpty
? () {
FocusManager.instance.primaryFocus?.unfocus();
Expand All @@ -50,7 +49,7 @@ class SplashImportWalletPage extends HookConsumerWidget {
style: FontTheme.of(context).h4.white(),
),
Padding(
padding: const EdgeInsets.only(top: 16, bottom: 32),
padding: const EdgeInsets.only(top: 16, bottom: 16),
child: Text(
FlutterI18n.translate(context, 'word_seed_phrase'),
style: FontTheme.of(context).body1.white(),
Expand All @@ -66,6 +65,9 @@ class SplashImportWalletPage extends HookConsumerWidget {
context, 'enter_secret_recovery_phrase'),
action: TextInputAction.done,
validator: (v) => presenter.validate(v),
autoFocus: true,
borderUnFocusColor: ColorsTheme.of(context).borderPrimary100,
borderFocusColor: ColorsTheme.of(context).borderPrimary200,
),
),
],
Expand Down

0 comments on commit 1e4b8ff

Please sign in to comment.