expand eth wallet card dropdown when header is clicked/tapped anywhere, not just the tiny grey button area

This commit is contained in:
julian 2023-04-10 09:16:07 -06:00
parent 7ef2d5f0d7
commit 3a3bb88870
2 changed files with 14 additions and 2 deletions

View file

@ -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,

View file

@ -49,7 +49,13 @@ class _MasterWalletCardState extends ConsumerState<MasterWalletCard> {
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(