Splasher.withLottie constructor

Splasher.withLottie({
  1. double logoWidth = 50,
  2. double? logoHeight,
  3. Color loaderColor = Colors.black,
  4. Text? title,
  5. Color backgroundColor = Colors.white,
  6. Text loadingText = const Text(''),
  7. EdgeInsets loadingTextPadding = const EdgeInsets.only(top: 10.0),
  8. Gradient? gradientBackground,
  9. bool showLoader = true,
  10. int durationInSeconds = 3,
  11. dynamic navigator,
  12. Future<Object>? futureNavigator,
})

Implementation

factory Splasher.withLottie({
  required String logo,
  double logoWidth = 50,
  double? logoHeight,
  Color loaderColor = Colors.black,
  Text? title,
  Color backgroundColor = Colors.white,
  Text loadingText = const Text(''),
  EdgeInsets loadingTextPadding = const EdgeInsets.only(top: 10.0),
  Gradient? gradientBackground,
  bool showLoader = true,
  int durationInSeconds = 3,
  dynamic navigator,
  Future<Object>? futureNavigator,
}) =>
    Splasher(
      logo: logo,
      logoWidth: logoWidth,
      logoHeight: logoHeight ?? logoWidth,
      loaderColor: loaderColor,
      title: title,
      backgroundColor: backgroundColor,
      loadingText: loadingText,
      loadingTextPadding: loadingTextPadding,
      gradientBackground: gradientBackground,
      showLoader: showLoader,
      durationInSeconds: durationInSeconds,
      navigator: navigator,
      futureNavigator: futureNavigator,
    );