shrink static method

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

Implementation

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