LottieBuilder.network constructor

LottieBuilder.network(
  1. String src, {
  2. Map<String, String>? headers,
  3. Animation<double>? controller,
  4. FrameRate? frameRate,
  5. bool? animate,
  6. bool? reverse,
  7. bool? repeat,
  8. LottieDelegates? delegates,
  9. LottieOptions? options,
  10. LottieImageProviderFactory? imageProviderFactory,
  11. void onLoaded(
    1. LottieComposition
    )?,
  12. Key? key,
  13. LottieFrameBuilder? frameBuilder,
  14. ImageErrorWidgetBuilder? errorBuilder,
  15. double? width,
  16. double? height,
  17. BoxFit? fit,
  18. AlignmentGeometry? alignment,
  19. bool? addRepaintBoundary,
  20. FilterQuality? filterQuality,
  21. WarningCallback? onWarning,
})

Creates a widget that displays an LottieComposition obtained from the network.

Implementation

LottieBuilder.network(
  String src, {
  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,
}) : lottie = NetworkLottie(src,
          headers: headers, imageProviderFactory: imageProviderFactory);