-
-
Save Rahiche/bb4e9fdfbba3a85742268828d44d5af1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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