fix: show alt text after flipping practice choice
This commit is contained in:
parent
4451ca6126
commit
f3b2feac20
1 changed files with 1 additions and 2 deletions
|
|
@ -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,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue