Skip to content

Instantly share code, notes, and snippets.

@Rahiche
Created December 19, 2018 21:14
Show Gist options
  • Save Rahiche/ff939cbb0f5979d2d6ecdbe1a40cc204 to your computer and use it in GitHub Desktop.
Save Rahiche/ff939cbb0f5979d2d6ecdbe1a40cc204 to your computer and use it in GitHub Desktop.
return RotationTransition(
turns: controller.index == 1
? angle.animate(animation)
: angle.animate(ReverseAnimation(animation)),
alignment: Alignment.center,
child: ScaleTransition(
scale: tween.animate(animation),
child: child,
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment