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:
Kelrap 2026-01-02 10:29:35 -05:00 committed by GitHub
parent 8ce6c2fa8f
commit 3cd387cc13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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