grow static method

Widget grow(
  1. Animation<double> animation,
  2. Widget child
)

grow Scale animation, from in to out This method uses ScaleTransition widget

Implementation

static Widget grow(Animation<double> animation, Widget child) {
  return ScaleTransition(
    scale: Tween<double>(end: 1.0, begin: 0.0).animate(CurvedAnimation(
        parent: animation, curve: const Interval(0.00, 0.50))),
    child: child,
  );
}