diff --git a/catalyst_voices/lib/pages/registration/link_wallet/rbac_transaction/rbac_transaction_panel.dart b/catalyst_voices/lib/pages/registration/link_wallet/rbac_transaction/rbac_transaction_panel.dart new file mode 100644 index 0000000000..4848892b93 --- /dev/null +++ b/catalyst_voices/lib/pages/registration/link_wallet/rbac_transaction/rbac_transaction_panel.dart @@ -0,0 +1,34 @@ +import 'package:catalyst_voices/widgets/buttons/voices_filled_button.dart'; +import 'package:catalyst_voices_assets/catalyst_voices_assets.dart'; +import 'package:catalyst_voices_blocs/catalyst_voices_blocs.dart'; +import 'package:flutter/material.dart'; + +// TODO(dtscalac): define content +class RbacTransactionPanel extends StatelessWidget { + const RbacTransactionPanel({super.key}); + + @override + Widget build(BuildContext context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + const Spacer(), + VoicesFilledButton( + leading: VoicesAssets.icons.wallet.buildIcon(), + onTap: () { + RegistrationBloc.of(context).add(const PreviousStepEvent()); + }, + child: const Text('Previous'), + ), + const SizedBox(height: 12), + VoicesFilledButton( + leading: VoicesAssets.icons.wallet.buildIcon(), + onTap: () { + RegistrationBloc.of(context).add(const NextStepEvent()); + }, + child: const Text('Next'), + ), + ], + ); + } +} diff --git a/catalyst_voices/lib/pages/registration/link_wallet/roles_chooser/roles_chooser_panel.dart b/catalyst_voices/lib/pages/registration/link_wallet/roles_chooser/roles_chooser_panel.dart new file mode 100644 index 0000000000..5fbf8589df --- /dev/null +++ b/catalyst_voices/lib/pages/registration/link_wallet/roles_chooser/roles_chooser_panel.dart @@ -0,0 +1,34 @@ +import 'package:catalyst_voices/widgets/buttons/voices_filled_button.dart'; +import 'package:catalyst_voices_assets/catalyst_voices_assets.dart'; +import 'package:catalyst_voices_blocs/catalyst_voices_blocs.dart'; +import 'package:flutter/material.dart'; + +// TODO(dtscalac): define content +class RolesChooserPanel extends StatelessWidget { + const RolesChooserPanel({super.key}); + + @override + Widget build(BuildContext context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + const Spacer(), + VoicesFilledButton( + leading: VoicesAssets.icons.wallet.buildIcon(), + onTap: () { + RegistrationBloc.of(context).add(const PreviousStepEvent()); + }, + child: const Text('Previous'), + ), + const SizedBox(height: 12), + VoicesFilledButton( + leading: VoicesAssets.icons.wallet.buildIcon(), + onTap: () { + RegistrationBloc.of(context).add(const NextStepEvent()); + }, + child: const Text('Next'), + ), + ], + ); + } +} diff --git a/catalyst_voices/lib/pages/registration/link_wallet/roles_summary/roles_summary_panel.dart b/catalyst_voices/lib/pages/registration/link_wallet/roles_summary/roles_summary_panel.dart new file mode 100644 index 0000000000..c8af179f27 --- /dev/null +++ b/catalyst_voices/lib/pages/registration/link_wallet/roles_summary/roles_summary_panel.dart @@ -0,0 +1,34 @@ +import 'package:catalyst_voices/widgets/buttons/voices_filled_button.dart'; +import 'package:catalyst_voices_assets/catalyst_voices_assets.dart'; +import 'package:catalyst_voices_blocs/catalyst_voices_blocs.dart'; +import 'package:flutter/material.dart'; + +// TODO(dtscalac): define content +class RolesSummaryPanel extends StatelessWidget { + const RolesSummaryPanel({super.key}); + + @override + Widget build(BuildContext context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + const Spacer(), + VoicesFilledButton( + leading: VoicesAssets.icons.wallet.buildIcon(), + onTap: () { + RegistrationBloc.of(context).add(const PreviousStepEvent()); + }, + child: const Text('Previous'), + ), + const SizedBox(height: 12), + VoicesFilledButton( + leading: VoicesAssets.icons.wallet.buildIcon(), + onTap: () { + RegistrationBloc.of(context).add(const NextStepEvent()); + }, + child: const Text('Next'), + ), + ], + ); + } +} diff --git a/catalyst_voices/lib/pages/registration/link_wallet/wallet_details/wallet_details_panel.dart b/catalyst_voices/lib/pages/registration/link_wallet/wallet_details/wallet_details_panel.dart new file mode 100644 index 0000000000..8c1bc2cbfb --- /dev/null +++ b/catalyst_voices/lib/pages/registration/link_wallet/wallet_details/wallet_details_panel.dart @@ -0,0 +1,34 @@ +import 'package:catalyst_voices/widgets/buttons/voices_filled_button.dart'; +import 'package:catalyst_voices_assets/catalyst_voices_assets.dart'; +import 'package:catalyst_voices_blocs/catalyst_voices_blocs.dart'; +import 'package:flutter/material.dart'; + +// TODO(dtscalac): define content +class WalletDetailsPanel extends StatelessWidget { + const WalletDetailsPanel({super.key}); + + @override + Widget build(BuildContext context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + const Spacer(), + VoicesFilledButton( + leading: VoicesAssets.icons.wallet.buildIcon(), + onTap: () { + RegistrationBloc.of(context).add(const PreviousStepEvent()); + }, + child: const Text('Previous'), + ), + const SizedBox(height: 12), + VoicesFilledButton( + leading: VoicesAssets.icons.wallet.buildIcon(), + onTap: () { + RegistrationBloc.of(context).add(const NextStepEvent()); + }, + child: const Text('Next'), + ), + ], + ); + } +} diff --git a/catalyst_voices/lib/pages/registration/link_wallet/wallet_link_panel.dart b/catalyst_voices/lib/pages/registration/link_wallet/wallet_link_panel.dart index 4799809f7e..3838633e53 100644 --- a/catalyst_voices/lib/pages/registration/link_wallet/wallet_link_panel.dart +++ b/catalyst_voices/lib/pages/registration/link_wallet/wallet_link_panel.dart @@ -1,5 +1,9 @@ import 'package:catalyst_voices/pages/registration/link_wallet/intro/intro_panel.dart'; +import 'package:catalyst_voices/pages/registration/link_wallet/rbac_transaction/rbac_transaction_panel.dart'; +import 'package:catalyst_voices/pages/registration/link_wallet/roles_chooser/roles_chooser_panel.dart'; +import 'package:catalyst_voices/pages/registration/link_wallet/roles_summary/roles_summary_panel.dart'; import 'package:catalyst_voices/pages/registration/link_wallet/select_wallet/select_wallet_panel.dart'; +import 'package:catalyst_voices/pages/registration/link_wallet/wallet_details/wallet_details_panel.dart'; import 'package:catalyst_voices_models/catalyst_voices_models.dart'; import 'package:flutter/material.dart'; @@ -16,11 +20,10 @@ class WalletLinkPanel extends StatelessWidget { return switch (stage) { WalletLinkStage.intro => const IntroPanel(), WalletLinkStage.selectWallet => const SelectWalletPanel(), - // TODO(dtscalac): define panels - WalletLinkStage.walletDetails => const SelectWalletPanel(), - WalletLinkStage.rolesChooser => const SelectWalletPanel(), - WalletLinkStage.rolesSummary => const SelectWalletPanel(), - WalletLinkStage.rbacTransaction => const SelectWalletPanel(), + WalletLinkStage.walletDetails => const WalletDetailsPanel(), + WalletLinkStage.rolesChooser => const RolesChooserPanel(), + WalletLinkStage.rolesSummary => const RolesSummaryPanel(), + WalletLinkStage.rbacTransaction => const RbacTransactionPanel(), }; } }