bounceIn static method

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

弹入动画

Implementation

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