mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
expand eth wallet card dropdown when header is clicked/tapped anywhere, not just the tiny grey button area
This commit is contained in:
parent
7ef2d5f0d7
commit
3a3bb88870
2 changed files with 14 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue