WrapperLabelImage constructor

const WrapperLabelImage({
  1. Key? key,
  2. required String imageUrl,
  3. required List<LabelItem> labels,
  4. TextStyle? textStyle,
  5. TextScaler? textScaler = TextScaler.noScaling,
  6. Axis labelDirection = Axis.vertical,
  7. BoxBorder? labelBorder,
  8. EdgeInsets? labelPadding,
  9. Map<String, String>? httpHeaders,
  10. ImageWidgetBuilder? imageBuilder,
  11. Widget? defaultPlaceholder,
  12. PlaceholderWidgetBuilder? placeholder,
  13. ProgressIndicatorBuilder? progressIndicatorBuilder,
  14. LoadingErrorWidgetBuilder? errorWidget,
  15. Duration fadeOutDuration = const Duration(milliseconds: 1000),
  16. Curve fadeOutCurve = Curves.easeOut,
  17. Duration fadeInDuration = const Duration(milliseconds: 500),
  18. Curve fadeInCurve = Curves.easeIn,
  19. double? width,
  20. double? height,
  21. BoxFit? fit = BoxFit.cover,
  22. Alignment alignment = Alignment.center,
  23. ImageRepeat repeat = ImageRepeat.noRepeat,
  24. bool matchTextDirection = false,
  25. bool useOldImageOnUrlChange = false,
  26. Color? color,
  27. FilterQuality filterQuality = FilterQuality.low,
  28. BlendMode? colorBlendMode,
  29. Duration? placeholderFadeInDuration,
  30. int? memCacheWidth,
  31. int? memCacheHeight,
  32. String? cacheKey,
  33. int? maxWidthDiskCache,
  34. int? maxHeightDiskCache,
  35. bool usePlaceholder = true,
  36. bool showLabel = true,
  37. bool ignorePointer = false,
})

Implementation

const WrapperLabelImage({
  super.key,
  required this.imageUrl,
  required this.labels,
  this.textStyle,
  this.textScaler = TextScaler.noScaling,
  this.labelDirection = Axis.vertical,
  this.labelBorder,
  this.labelPadding,
  this.httpHeaders,
  this.imageBuilder,
  this.defaultPlaceholder,
  this.placeholder,
  this.progressIndicatorBuilder,
  this.errorWidget,
  this.fadeOutDuration = const Duration(milliseconds: 1000),
  this.fadeOutCurve = Curves.easeOut,
  this.fadeInDuration = const Duration(milliseconds: 500),
  this.fadeInCurve = Curves.easeIn,
  this.width,
  this.height,
  this.fit = BoxFit.cover,
  this.alignment = Alignment.center,
  this.repeat = ImageRepeat.noRepeat,
  this.matchTextDirection = false,
  this.useOldImageOnUrlChange = false,
  this.color,
  this.filterQuality = FilterQuality.low,
  this.colorBlendMode,
  this.placeholderFadeInDuration,
  this.memCacheWidth,
  this.memCacheHeight,
  this.cacheKey,
  this.maxWidthDiskCache,
  this.maxHeightDiskCache,
  this.usePlaceholder = true,
  this.showLabel = true,
  this.ignorePointer = false,
});