bounceInDown static method

SlideTransition bounceInDown(
  1. Animation<double> animation,
  2. Widget child
)

向下弹入动画

Implementation

static SlideTransition bounceInDown(
  Animation<double> animation,
  Widget child,
) {
  return SlideTransition(
    position: Tween<Offset>(
      begin: const Offset(0.0, -1.0),
      end: Offset.zero,
    ).animate(CurvedAnimation(
      parent: animation,
      curve: Curves.bounceOut,
    )),
    child: child,
  );
}