awesomeTransition property

AnimatedSwitcherTransitionBuilder awesomeTransition
getter/setter pair

A combination of RotationTransition, DefaultTextStyleTransition, ScaleTransition

Implementation

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