bounce static method

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

弹跳动画

Implementation

static ScaleTransition bounce(Animation<double> animation, Widget child) {
  return ScaleTransition(
    scale: Tween<double>(begin: 0.0, end: 1.0).animate(
      CurvedAnimation(parent: animation, curve: Curves.elasticOut),
    ),
    child: child,
  );
}