bounceOutUp static method

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

向上弹出动画

Implementation

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