Skip to content

Commit

Permalink
Updated position of label in import xpub
Browse files Browse the repository at this point in the history
  • Loading branch information
i5hi committed Oct 20, 2023
1 parent 38759cb commit 327a620
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions lib/import/xpub.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class ImportXpubScreen extends StatelessWidget {
),
Gap(40),
ColdCardSection(),
_ImportExtra(),
_WalletLabel(),
_ImportButtons(),
Gap(80),
Expand Down Expand Up @@ -170,7 +171,7 @@ class _WalletLabel extends StatelessWidget {
final text = context.select((ImportWalletCubit cubit) => cubit.state.walletLabel ?? '');

return Padding(
padding: const EdgeInsets.symmetric(horizontal: 32),
padding: const EdgeInsets.all(24.0),
child: BBTextInput.big(
value: text,
onChanged: (value) => context.read<ImportWalletCubit>().walletLabelChanged(value),
Expand All @@ -180,8 +181,8 @@ class _WalletLabel extends StatelessWidget {
}
}

class _ImportButtons extends StatelessWidget {
const _ImportButtons();
class _ImportExtra extends StatelessWidget {
const _ImportExtra();

@override
Widget build(BuildContext context) {
Expand All @@ -204,15 +205,30 @@ class _ImportButtons extends StatelessWidget {
AdvancedOptions.openPopUp(context);
},
),
const Gap(16),
const Gap(8),
if (err.isNotEmpty) BBText.error(err, textAlign: TextAlign.center),
],
),
);
}
}

class _ImportButtons extends StatelessWidget {
const _ImportButtons();

@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(24.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
BBButton.bigRed(
label: 'Import',
onPressed: () {
context.read<ImportWalletCubit>().xpubSaveClicked();
},
),
const Gap(8),
if (err.isNotEmpty) BBText.error(err, textAlign: TextAlign.center),
],
),
);
Expand Down

0 comments on commit 327a620

Please sign in to comment.