grow static method

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

Implementation

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