From f3b2feac20303c103f9128ddc5aa6e4f700ad3c7 Mon Sep 17 00:00:00 2001 From: Ava Shilling <165050625+avashilling@users.noreply.github.com> Date: Fri, 16 Jan 2026 12:39:04 -0500 Subject: [PATCH] fix: show alt text after flipping practice choice --- lib/pangea/vocab_practice/choice_cards/game_choice_card.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/pangea/vocab_practice/choice_cards/game_choice_card.dart b/lib/pangea/vocab_practice/choice_cards/game_choice_card.dart index c4bed1767..ad2e5c461 100644 --- a/lib/pangea/vocab_practice/choice_cards/game_choice_card.dart +++ b/lib/pangea/vocab_practice/choice_cards/game_choice_card.dart @@ -100,7 +100,6 @@ class _GameChoiceCardState extends State animation: _scaleAnim, builder: (context, _) { final scale = _scaleAnim.value; - final showAlt = scale < 0.1 && widget.altChild != null; final showContent = scale > 0.05; return Transform.scale( @@ -113,7 +112,7 @@ class _GameChoiceCardState extends State : (hovered ? hoverColor : Colors.transparent), child: Opacity( opacity: showContent ? 1 : 0, - child: showAlt ? widget.altChild! : widget.child, + child: _revealed ? widget.altChild! : widget.child, ), ), );