grow static method

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

Scale animation, from in to out (ScaleTransition)

Implementation

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