LottieBuilder.network constructor
LottieBuilder.network(
- String src, {
- Client? client,
- Map<
String, String> ? headers, - Animation<
double> ? controller, - FrameRate? frameRate,
- bool? animate,
- bool? reverse,
- bool? repeat,
- LottieDelegates? delegates,
- LottieOptions? options,
- LottieImageProviderFactory? imageProviderFactory,
- void onLoaded()?,
- Key? key,
- LottieFrameBuilder? frameBuilder,
- ImageErrorWidgetBuilder? errorBuilder,
- double? width,
- double? height,
- BoxFit? fit,
- AlignmentGeometry? alignment,
- bool? addRepaintBoundary,
- FilterQuality? filterQuality,
- WarningCallback? onWarning,
- LottieDecoder? decoder,
- RenderCache? renderCache,
- bool? backgroundLoading,
Creates a widget that displays an LottieComposition obtained from the network.
Implementation
LottieBuilder.network(
String src, {
http.Client? client,
Map<String, String>? headers,
this.controller,
this.frameRate,
this.animate,
this.reverse,
this.repeat,
this.delegates,
this.options,
LottieImageProviderFactory? imageProviderFactory,
this.onLoaded,
super.key,
this.frameBuilder,
this.errorBuilder,
this.width,
this.height,
this.fit,
this.alignment,
this.addRepaintBoundary,
this.filterQuality,
this.onWarning,
LottieDecoder? decoder,
this.renderCache,
bool? backgroundLoading,
}) : lottie = NetworkLottie(src,
client: client,
headers: headers,
imageProviderFactory: imageProviderFactory,
decoder: decoder,
backgroundLoading: backgroundLoading);