Ensure consistency of pressable button height after animation (#5025)
* Ensure consistency of pressable button height after animation * Use variable instead of hardcoded value
This commit is contained in:
parent
8ce6c2fa8f
commit
3cd387cc13
1 changed files with 4 additions and 1 deletions
|
|
@ -165,7 +165,10 @@ class PressableButtonState extends State<PressableButton>
|
|||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
SizedBox(height: _tweenAnimation.value),
|
||||
SizedBox(
|
||||
height: _depressed
|
||||
? widget.buttonHeight
|
||||
: _tweenAnimation.value),
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: shadowColor,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue