fadeOutLeftBig static method

FadeTransition fadeOutLeftBig(
  1. Animation<double> animation,
  2. Widget child
)

向左淡出大动画

Implementation

static FadeTransition fadeOutLeftBig(
  Animation<double> animation,
  Widget child,
) {
  return FadeTransition(
    opacity: Tween<double>(begin: 1.0, end: 0.0).animate(animation),
    child: SlideTransition(
      position: Tween<Offset>(
        begin: Offset.zero,
        end: const Offset(-1.0, 0),
      ).animate(animation),
      child: child,
    ),
  );
}