backOutRight static method

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

向右回弹出动画

Implementation

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