Splasher.withLottie constructor
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,
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,
);