From 0e7d3e70c97be0b21bde6a1edfa14cad98c31564 Mon Sep 17 00:00:00 2001 From: Damian Molinski Date: Fri, 27 Sep 2024 16:05:32 +0200 Subject: [PATCH] fix: spacings --- .../stage/seed_phrase_panel.dart | 22 ++++++++++++------- .../src/registration/registration_bloc.dart | 2 +- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/catalyst_voices/lib/pages/registration/create_keychain/stage/seed_phrase_panel.dart b/catalyst_voices/lib/pages/registration/create_keychain/stage/seed_phrase_panel.dart index 635e6b2bdaf..faf8cb31cdc 100644 --- a/catalyst_voices/lib/pages/registration/create_keychain/stage/seed_phrase_panel.dart +++ b/catalyst_voices/lib/pages/registration/create_keychain/stage/seed_phrase_panel.dart @@ -49,9 +49,11 @@ class _Body extends StatelessWidget { @override Widget build(BuildContext context) { return SingleChildScrollView( + padding: const EdgeInsets.symmetric(horizontal: 20), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ + const SizedBox(height: 20), SeedPhrasesViewer(words: words), const SizedBox(height: 10), VoicesTextButton( @@ -95,16 +97,20 @@ class _Navigation extends StatelessWidget { Widget build(BuildContext context) { return Row( children: [ - VoicesBackButton( - onTap: () { - RegistrationBloc.of(context).add(const PreviousStepEvent()); - }, + Expanded( + child: VoicesBackButton( + onTap: () { + RegistrationBloc.of(context).add(const PreviousStepEvent()); + }, + ), ), const SizedBox(width: 10), - VoicesNextButton( - onTap: isNextEnabled - ? () => RegistrationBloc.of(context).add(const NextStepEvent()) - : null, + Expanded( + child: VoicesNextButton( + onTap: isNextEnabled + ? () => RegistrationBloc.of(context).add(const NextStepEvent()) + : null, + ), ), ], ); diff --git a/catalyst_voices/packages/catalyst_voices_blocs/lib/src/registration/registration_bloc.dart b/catalyst_voices/packages/catalyst_voices_blocs/lib/src/registration/registration_bloc.dart index c90f478b5a0..97fea8a7428 100644 --- a/catalyst_voices/packages/catalyst_voices_blocs/lib/src/registration/registration_bloc.dart +++ b/catalyst_voices/packages/catalyst_voices_blocs/lib/src/registration/registration_bloc.dart @@ -15,7 +15,7 @@ final class RegistrationBloc RegistrationBloc() : _keychainCreationController = KeychainCreationController(), _walletLinkController = WalletLinkController(), - super(const WalletLink()) { + super(const GetStarted()) { _keychainCreationController.addListener(_onKeychainControllerChanged); _walletLinkController.addListener(_onWalletLinkControllerChanged);