slideInLeft static method

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

从左侧滑入动画

Implementation

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