bounceOut static method

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

弹出动画

Implementation

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