FlutterSplashScreen.fadeIn constructor
FlutterSplashScreen.fadeIn({
- Key? key,
- Widget? nextScreen,
- required Widget? childWidget,
- Curve animationCurve = Curves.ease,
- Duration? animationDuration = const Duration(milliseconds: 2000),
- Duration? duration,
- Color? backgroundColor = Colors.black,
- Duration setStateTimer = const Duration(milliseconds: 200),
- VoidCallback? onAnimationEnd,
- VoidCallback? onInit,
- VoidCallback? onEnd,
- Image? backgroundImage,
- Gradient? gradient,
- 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;
};
}