mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +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.expanded
|
||||||
: ExpandableState.collapsed,
|
: ExpandableState.collapsed,
|
||||||
controller: expandableController,
|
controller: expandableController,
|
||||||
expandOverride: () {},
|
onExpandWillChange: (toState) {
|
||||||
|
if (toState == ExpandableState.expanded) {
|
||||||
|
rotateIconController.forward?.call();
|
||||||
|
} else {
|
||||||
|
rotateIconController.reverse?.call();
|
||||||
|
}
|
||||||
|
},
|
||||||
header: Padding(
|
header: Padding(
|
||||||
padding: const EdgeInsets.symmetric(
|
padding: const EdgeInsets.symmetric(
|
||||||
horizontal: 20,
|
horizontal: 20,
|
||||||
|
|
|
@ -49,7 +49,13 @@ class _MasterWalletCardState extends ConsumerState<MasterWalletCard> {
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.zero,
|
||||||
child: Expandable(
|
child: Expandable(
|
||||||
controller: expandableController,
|
controller: expandableController,
|
||||||
expandOverride: () {},
|
onExpandWillChange: (toState) {
|
||||||
|
if (toState == ExpandableState.expanded) {
|
||||||
|
rotateIconController.forward?.call();
|
||||||
|
} else {
|
||||||
|
rotateIconController.reverse?.call();
|
||||||
|
}
|
||||||
|
},
|
||||||
header: Padding(
|
header: Padding(
|
||||||
padding: const EdgeInsets.all(12),
|
padding: const EdgeInsets.all(12),
|
||||||
child: Row(
|
child: Row(
|
||||||
|
|
Loading…
Reference in a new issue