chore: collection seed always fades up and out (#3987)

Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>
pull/2245/head
avashilling 1 month ago committed by GitHub
parent 7ab96467b3
commit 998ffb00ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -105,18 +105,11 @@ class _NewWordOverlayState extends State<NewWordOverlay>
final fade = 1.0 - (_fadeAnim!.value);
final move = _moveAnim!.value;
final seedSize = 75 * scale * fade;
// Calculate movement to top left if fullscreen, or top right of word card if mobile
final screenSize = MediaQuery.of(context).size;
final moveX =
columnMode ? -move * (screenSize.width / 2 - 50) : move * 130;
final moveY =
columnMode ? -move * (screenSize.height / 2 - 50) : move * -120;
final seedSize = 75 * scale;
final moveY = -move * 60;
return Transform.translate(
offset: Offset(moveX, moveY),
offset: Offset(0, moveY),
child: Opacity(
opacity: fade,
child: Transform.rotate(

Loading…
Cancel
Save