ProgressiveCachedNetworkImage constructor
ProgressiveCachedNetworkImage(
- String url, {
- Key? key,
- Alignment alignment = Alignment.center,
- Widget progressivePlaceholder(
- BuildContext conetxt,
- String url
- double progressiveBlur = 2,
- Widget progressiveErrorPlaceholder(
- BuildContext context,
- String url,
- dynamic error
- int? progressiveResizeHeight,
- int? progressiveResizeWidth,
- ImageCDNFit progressiveResizerFit = ImageCDNFit.contain,
- ImageCDNFormat progressiveResizerFormat = ImageCDNFormat.webp,
- ImageCDNFit resizerFit = ImageCDNFit.contain,
- ImageCDNFormat resizerFormat = ImageCDNFormat.webp,
- int? resizerHeight,
- int? resizerWidth,
- Map<
String, String> ? httpHeaders, - ImageWidgetBuilder? imageBuilder,
- ProgressIndicatorBuilder? progressIndicatorBuilder,
- 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,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- bool matchTextDirection = false,
- BaseCacheManager? cacheManager,
- bool useOldImageOnUrlChange = false,
- Color? color,
- FilterQuality filterQuality = FilterQuality.low,
- BlendMode? colorBlendMode,
- Duration? placeholderFadeInDuration,
- int? memCacheWidth,
- int? memCacheHeight,
- String? cacheKey,
- int? maxWidthDiskCache,
- int? maxHeightDiskCache,
- ImageRenderMethodForWeb imageRenderMethodForWeb = ImageRenderMethodForWeb.HtmlImage,
Implementation
ProgressiveCachedNetworkImage(
this.url, {
super.key,
Alignment alignment = Alignment.center,
this.progressivePlaceholder,
this.progressiveBlur = 2,
this.progressiveErrorPlaceholder,
this.progressiveResizeHeight,
this.progressiveResizeWidth,
this.progressiveResizerFit = ImageCDNFit.contain,
this.progressiveResizerFormat = ImageCDNFormat.webp,
// CachedNetworkImage params
super.resizerFit,
super.resizerFormat,
super.resizerHeight,
super.resizerWidth,
super.httpHeaders,
super.imageBuilder,
super.progressIndicatorBuilder,
super.fadeOutDuration,
super.fadeOutCurve,
super.fadeInDuration,
super.fadeInCurve,
super.width,
super.height,
super.fit,
super.repeat,
super.matchTextDirection,
super.cacheManager,
super.useOldImageOnUrlChange,
super.color,
super.filterQuality,
super.colorBlendMode,
super.placeholderFadeInDuration,
super.memCacheWidth,
super.memCacheHeight,
super.cacheKey,
super.maxWidthDiskCache,
super.maxHeightDiskCache,
super.imageRenderMethodForWeb,
}) : super(
url,
placeholder: (context, urlPlaceholder) => _smallPlaceholder(
url,
fit: fit,
alignment: alignment,
progressiveErrorPlaceholder: progressiveErrorPlaceholder,
progressivePlaceholder: progressivePlaceholder,
broken: false,
resizeHeight: progressiveResizeWidth,
resizeWidth: progressiveResizeHeight,
blurDensity: progressiveBlur,
resizerFormat: progressiveResizerFormat,
resizerFit: progressiveResizerFit,
),
errorWidget: progressiveErrorPlaceholder,
);