awesomeTransition property
A combination of RotationTransition, DefaultTextStyleTransition, ScaleTransition
Implementation
static AnimatedSwitcherTransitionBuilder awesomeTransition =
(Widget child, Animation<double> animation) {
return RotationTransition(
child: DefaultTextStyleTransition(
style: TextStyleTween(
begin: TextStyle(color: Colors.pink),
end: TextStyle(color: Colors.blue))
.animate(animation),
child: ScaleTransition(
child: child,
scale: animation,
),
),
turns: animation);
};