From 3cd387cc131d6d1fc8419a7dad168d9120560d54 Mon Sep 17 00:00:00 2001 From: Kelrap <99418823+Kelrap@users.noreply.github.com> Date: Fri, 2 Jan 2026 10:29:35 -0500 Subject: [PATCH] Ensure consistency of pressable button height after animation (#5025) * Ensure consistency of pressable button height after animation * Use variable instead of hardcoded value --- lib/pangea/common/widgets/pressable_button.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/pangea/common/widgets/pressable_button.dart b/lib/pangea/common/widgets/pressable_button.dart index 2f662efcb..87bbb837e 100644 --- a/lib/pangea/common/widgets/pressable_button.dart +++ b/lib/pangea/common/widgets/pressable_button.dart @@ -165,7 +165,10 @@ class PressableButtonState extends State child: Column( mainAxisSize: MainAxisSize.min, children: [ - SizedBox(height: _tweenAnimation.value), + SizedBox( + height: _depressed + ? widget.buttonHeight + : _tweenAnimation.value), Container( decoration: BoxDecoration( color: shadowColor,