Skip to content

Commit

Permalink
feat: add missing panels
Browse files Browse the repository at this point in the history
  • Loading branch information
dtscalac committed Sep 26, 2024
1 parent 9dd48ce commit ce63639
Show file tree
Hide file tree
Showing 5 changed files with 144 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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'),
),
],
);
}
}
Original file line number Diff line number Diff line change
@@ -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'),
),
],
);
}
}
Original file line number Diff line number Diff line change
@@ -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'),
),
],
);
}
}
Original file line number Diff line number Diff line change
@@ -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'),
),
],
);
}
}
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -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(),
};
}
}

0 comments on commit ce63639

Please sign in to comment.