mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
WIP: adding monkey to desktop
This commit is contained in:
parent
3cb8a6a173
commit
5668b045e5
1 changed files with 9 additions and 0 deletions
|
@ -29,6 +29,7 @@ class MoreFeaturesDialog extends ConsumerStatefulWidget {
|
|||
required this.onCoinControlPressed,
|
||||
required this.onAnonymizeAllPressed,
|
||||
required this.onWhirlpoolPressed,
|
||||
required this.onMonkeyPressed,
|
||||
}) : super(key: key);
|
||||
|
||||
final String walletId;
|
||||
|
@ -36,6 +37,7 @@ class MoreFeaturesDialog extends ConsumerStatefulWidget {
|
|||
final VoidCallback? onCoinControlPressed;
|
||||
final VoidCallback? onAnonymizeAllPressed;
|
||||
final VoidCallback? onWhirlpoolPressed;
|
||||
final VoidCallback? onMonkeyPressed;
|
||||
|
||||
@override
|
||||
ConsumerState<MoreFeaturesDialog> createState() => _MoreFeaturesDialogState();
|
||||
|
@ -103,6 +105,13 @@ class _MoreFeaturesDialogState extends ConsumerState<MoreFeaturesDialog> {
|
|||
iconAsset: Assets.svg.robotHead,
|
||||
onPressed: () => widget.onPaynymPressed?.call(),
|
||||
),
|
||||
if (manager.coin == Coin.banano)
|
||||
_MoreFeaturesItem(
|
||||
label: "MonKey",
|
||||
detail: "Generate Banano MonKey",
|
||||
iconAsset: Assets.svg.monkey,
|
||||
onPressed: () => widget.onMonkeyPressed?.call(),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 28,
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue