From 6e5cffa4d4749a086d931732e0179a41ce41275d Mon Sep 17 00:00:00 2001 From: julian <julian@cypherstack.com> Date: Mon, 3 Apr 2023 16:37:20 -0600 Subject: [PATCH] desktop show more button fix --- .../sub_widgets/desktop_wallet_features.dart | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_wallet_features.dart b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_wallet_features.dart index 5b1c3edce..da5fd5745 100644 --- a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_wallet_features.dart +++ b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_wallet_features.dart @@ -355,19 +355,21 @@ class _DesktopWalletFeaturesState extends ConsumerState<DesktopWalletFeatures> { const SizedBox( width: 16, ), - SecondaryButton( - label: "More", - width: buttonWidth, - buttonHeight: ButtonHeight.l, - icon: SvgPicture.asset( - Assets.svg.bars, - height: 20, - width: 20, - color: - Theme.of(context).extension<StackColors>()!.buttonTextSecondary, + if (showMore) + SecondaryButton( + label: "More", + width: buttonWidth, + buttonHeight: ButtonHeight.l, + icon: SvgPicture.asset( + Assets.svg.bars, + height: 20, + width: 20, + color: Theme.of(context) + .extension<StackColors>()! + .buttonTextSecondary, + ), + onPressed: () => _onMorePressed(), ), - onPressed: () => _onMorePressed(), - ), ], ); }