Skip to content

Instantly share code, notes, and snippets.

@Rahiche
Created December 19, 2018 21:14
Show Gist options
  • Save Rahiche/bb4e9fdfbba3a85742268828d44d5af1 to your computer and use it in GitHub Desktop.
Save Rahiche/bb4e9fdfbba3a85742268828d44d5af1 to your computer and use it in GitHub Desktop.
transitionBuilder: (Widget child, Animation<double> animation) {
final scaleTween = TweenSequence([
TweenSequenceItem(tween: Tween(begin: 1.0, end: 1.2), weight: 1),
TweenSequenceItem(tween: Tween(begin: 1.2, end: 1.0), weight: 1),
]);
return ScaleTransition(
scale: scaleTween.animate(animation),
child: child,
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment