FlutterSplashScreen.fadeIn constructor

FlutterSplashScreen.fadeIn({
  1. Key? key,
  2. Widget? nextScreen,
  3. required Widget? childWidget,
  4. Curve animationCurve = Curves.ease,
  5. Duration? animationDuration = const Duration(milliseconds: 2000),
  6. Duration? duration,
  7. Color? backgroundColor = Colors.black,
  8. Duration setStateTimer = const Duration(milliseconds: 200),
  9. VoidCallback? onAnimationEnd,
  10. VoidCallback? onInit,
  11. VoidCallback? onEnd,
  12. AsyncCallback? asyncNavigationCallback,
  13. Image? backgroundImage,
  14. Gradient? gradient,
  15. bool useImmersiveMode = false,
})

Provides ready-made fadeIn templated splash;

Implementation

FlutterSplashScreen.fadeIn({
  super.key,
  this.nextScreen,
  required this.childWidget,
  this.animationCurve = Curves.ease,
  this.animationDuration = const Duration(milliseconds: 2000),
  this.duration,
  this.backgroundColor = Colors.black,
  this.setStateTimer = const Duration(milliseconds: 200),
  this.onAnimationEnd,
  this.onInit,
  this.onEnd,
  this.asyncNavigationCallback,
  this.backgroundImage,
  this.gradient,
  this.useImmersiveMode = false,
}) {
  splashType = SplashType.fadeIn;

  setStateCallback = () {
    _opacity = 1;
  };
}