Merge pull request #5235 from pangeachat/5233-practice-choice-cards-not-showing-translation-after-flipping

fix: show alt text after flipping practice choice
This commit is contained in:
ggurdin 2026-01-16 12:42:09 -05:00 committed by GitHub
commit aea5cdef79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,7 +100,6 @@ class _GameChoiceCardState extends State<GameChoiceCard>
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<GameChoiceCard>
: (hovered ? hoverColor : Colors.transparent),
child: Opacity(
opacity: showContent ? 1 : 0,
child: showAlt ? widget.altChild! : widget.child,
child: _revealed ? widget.altChild! : widget.child,
),
),
);