FlutterSplashScreen.gif constructor

FlutterSplashScreen.gif({
  1. Key? key,
  2. required String? gifPath,
  3. required double? gifWidth,
  4. required double? gifHeight,
  5. Widget? nextScreen,
  6. Duration? duration,
  7. Color? backgroundColor = Colors.black,
  8. Duration setStateTimer = const Duration(milliseconds: 100),
  9. VoidCallback? setStateCallback,
  10. VoidCallback? onInit,
  11. VoidCallback? onEnd,
  12. AsyncCallback? asyncNavigationCallback,
  13. Image? backgroundImage,
  14. Gradient? gradient,
  15. 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;
}