WrapperLabelImage constructor
const
WrapperLabelImage({
- Key? key,
- required String imageUrl,
- required List<
LabelItem> labels, - TextStyle? textStyle,
- TextScaler? textScaler = TextScaler.noScaling,
- Axis labelDirection = Axis.vertical,
- BoxBorder? labelBorder,
- EdgeInsets? labelPadding,
- Map<
String, String> ? httpHeaders, - ImageWidgetBuilder? imageBuilder,
- Widget? defaultPlaceholder,
- PlaceholderWidgetBuilder? placeholder,
- ProgressIndicatorBuilder? progressIndicatorBuilder,
- LoadingErrorWidgetBuilder? errorWidget,
- Duration fadeOutDuration = const Duration(milliseconds: 1000),
- Curve fadeOutCurve = Curves.easeOut,
- Duration fadeInDuration = const Duration(milliseconds: 500),
- Curve fadeInCurve = Curves.easeIn,
- double? width,
- double? height,
- BoxFit? fit = BoxFit.cover,
- Alignment alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- bool matchTextDirection = false,
- bool useOldImageOnUrlChange = false,
- Color? color,
- FilterQuality filterQuality = FilterQuality.low,
- BlendMode? colorBlendMode,
- Duration? placeholderFadeInDuration,
- int? memCacheWidth,
- int? memCacheHeight,
- String? cacheKey,
- int? maxWidthDiskCache,
- int? maxHeightDiskCache,
- bool usePlaceholder = true,
- bool showLabel = true,
- 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,
});