fadeIn static method

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

使用给定的动画将一个小部件淡入。

Implementation

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