From 3a3bb8887087a2d5953021f13c5d471da814f0b1 Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 10 Apr 2023 09:16:07 -0600 Subject: [PATCH] expand eth wallet card dropdown when header is clicked/tapped anywhere, not just the tiny grey button area --- .../dialogs/desktop_coin_wallets_dialog.dart | 8 +++++++- lib/widgets/master_wallet_card.dart | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/pages_desktop_specific/my_stack_view/dialogs/desktop_coin_wallets_dialog.dart b/lib/pages_desktop_specific/my_stack_view/dialogs/desktop_coin_wallets_dialog.dart index 46d8a3b19..114503206 100644 --- a/lib/pages_desktop_specific/my_stack_view/dialogs/desktop_coin_wallets_dialog.dart +++ b/lib/pages_desktop_specific/my_stack_view/dialogs/desktop_coin_wallets_dialog.dart @@ -306,7 +306,13 @@ class _DesktopWalletCardState extends State<_DesktopWalletCard> { ? ExpandableState.expanded : ExpandableState.collapsed, controller: expandableController, - expandOverride: () {}, + onExpandWillChange: (toState) { + if (toState == ExpandableState.expanded) { + rotateIconController.forward?.call(); + } else { + rotateIconController.reverse?.call(); + } + }, header: Padding( padding: const EdgeInsets.symmetric( horizontal: 20, diff --git a/lib/widgets/master_wallet_card.dart b/lib/widgets/master_wallet_card.dart index 65f65c3a1..165ae9ec5 100644 --- a/lib/widgets/master_wallet_card.dart +++ b/lib/widgets/master_wallet_card.dart @@ -49,7 +49,13 @@ class _MasterWalletCardState extends ConsumerState { padding: EdgeInsets.zero, child: Expandable( controller: expandableController, - expandOverride: () {}, + onExpandWillChange: (toState) { + if (toState == ExpandableState.expanded) { + rotateIconController.forward?.call(); + } else { + rotateIconController.reverse?.call(); + } + }, header: Padding( padding: const EdgeInsets.all(12), child: Row(