ProgressiveCachedNetworkImage class
- Inheritance
-
- Available extensions
Constructors
-
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, 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})
-
Properties
-
alignment
→ Alignment
-
How to align the image within its bounds.
finalinherited
-
cacheKey
→ String?
-
The target image's cache key.
finalinherited
-
cacheManager
→ BaseCacheManager?
-
Option to use cacheManager with other settings
finalinherited
-
color
→ Color?
-
If non-null, this color is blended with each image pixel using
colorBlendMode
.
finalinherited
-
colorBlendMode
→ BlendMode?
-
Used to combine
color
with this image.
finalinherited
-
errorListener
→ ValueChanged<Object>?
-
Listener to be called when images fails to load.
finalinherited
-
errorWidget
→ LoadingErrorWidgetBuilder?
-
Widget displayed while the target
imageUrl
failed loading.
finalinherited
-
fadeInCurve
→ Curve
-
The curve of the fade-in animation for the
imageUrl
.
finalinherited
-
fadeInDuration
→ Duration
-
The duration of the fade-in animation for the
imageUrl
.
finalinherited
-
fadeOutCurve
→ Curve
-
The curve of the fade-out animation for the
placeholder
.
finalinherited
-
fadeOutDuration
→ Duration?
-
The duration of the fade-out animation for the
placeholder
.
finalinherited
-
filterQuality
→ FilterQuality
-
Target the interpolation quality for image scaling.
finalinherited
-
fit
→ BoxFit?
-
How to inscribe the image into the space allocated during layout.
finalinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
height
→ double?
-
If non-null, require the image to have this height.
finalinherited
-
Optional headers for the http request of the image url
finalinherited
-
imageBuilder
→ ImageWidgetBuilder?
-
Optional builder to further customize the display of the image.
finalinherited
-
imageUrl
→ String
-
The target image that is displayed.
finalinherited
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
matchTextDirection
→ bool
-
Whether to paint the image in the direction of the TextDirection.
finalinherited
-
maxHeightDiskCache
→ int?
-
Will resize the image and store the resized image in the disk cache.
finalinherited
-
maxWidthDiskCache
→ int?
-
Will resize the image and store the resized image in the disk cache.
finalinherited
-
memCacheHeight
→ int?
-
Will resize the image in memory to have a certain height using ResizeImage
finalinherited
-
memCacheWidth
→ int?
-
Will resize the image in memory to have a certain width using ResizeImage
finalinherited
-
placeholder
→ PlaceholderWidgetBuilder?
-
Widget displayed while the target
imageUrl
is loading.
finalinherited
-
placeholderFadeInDuration
→ Duration?
-
The duration of the fade-in animation for the
placeholder
.
finalinherited
-
progressIndicatorBuilder
→ ProgressIndicatorBuilder?
-
Widget displayed while the target
imageUrl
is loading.
finalinherited
-
progressiveBlur
→ double
-
Blur density of the progressive image.
final
-
progressiveErrorPlaceholder
→ Widget Function(BuildContext context, String url, dynamic error)?
-
Will shown when fail to load the image;
final
-
progressivePlaceholder
→ Widget Function(BuildContext conetxt, String url)?
-
Will shown when image is loading and small placeholder is not provided yet
final
-
progressiveResizeHeight
→ int?
-
Height of the desired progressive image, in pixels.
final
-
progressiveResizerFit
→ ImageCDNFit
-
How to fill the space provided by height/width.
Options are:
cover
, contain
, fill
, inside
or outside
.
final
-
progressiveResizerFormat
→ ImageCDNFormat
-
Override the format output by the service.
Options are:
webp
, jpg
, png
.
final
-
progressiveResizeWidth
→ int?
-
Width of the desired progressive image, in pixels.
final
-
repeat
→ ImageRepeat
-
How to paint any portions of the layout bounds not covered by the image.
finalinherited
-
resizerFit
→ ImageCDNFit
-
How to fill the space provided by height/width.
Options are:
cover
, contain
, fill
, inside
or outside
.
finalinherited
-
resizerFormat
→ ImageCDNFormat
-
Override the format output by the service.
Options are:
webp
, jpg
, png
.
finalinherited
-
resizerHeight
→ int?
-
Height of the desired image, in pixels.
finalinherited
-
resizerWidth
→ int?
-
Width of the desired image, in pixels.
finalinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
url
→ String
-
final
-
useOldImageOnUrlChange
→ bool
-
When set to true it will animate from the old image to the new image
if the url changes.
finalinherited
-
width
→ double?
-
If non-null, require the image to have this width.
finalinherited