FlutterSplashScreen.gif constructor
FlutterSplashScreen.gif({
- Key? key,
- required String? gifPath,
- required double? gifWidth,
- required double? gifHeight,
- Widget? nextScreen,
- Duration? duration,
- Color? backgroundColor = Colors.black,
- Duration setStateTimer = const Duration(milliseconds: 100),
- VoidCallback? setStateCallback,
- VoidCallback? onInit,
- VoidCallback? onEnd,
- Image? backgroundImage,
- Gradient? gradient,
- bool useImmersiveMode = false,
Provides ready-made gif templated splash;
Implementation
FlutterSplashScreen.gif({
super.key,
required this.gifPath,
required this.gifWidth,
required this.gifHeight,
this.nextScreen,
this.duration,
this.backgroundColor = Colors.black,
this.setStateTimer = const Duration(milliseconds: 100),
this.setStateCallback,
this.onInit,
this.onEnd,
this.asyncNavigationCallback,
this.backgroundImage,
this.gradient,
this.useImmersiveMode = false,
}) {
splashType = SplashType.gif;
}