fadeOut static method

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

淡出动画

Implementation

static FadeTransition fadeOut(
  Animation<double> animation,
  Widget child,
) {
  return FadeTransition(
    opacity: Tween<double>(begin: 1.0, end: 0.0).animate(animation),
    child: child,
  );
}