FastCachedImage creates a widget to display network images. This widget downloads the network image
when this widget is build for the first time. Later whenever this widget is called the image will be displayed from
the downloaded database instead of the network. This can avoid unnecessary downloads and load images much faster.
The alignment aligns the given position in the image to the given position
in the layout bounds. For example, an Alignment alignment of (-1.0,
-1.0) aligns the image to the top-left corner of its layout bounds, while an
Alignment alignment of (1.0, 1.0) aligns the bottom right of the
image with the bottom right corner of its layout bounds. Similarly, an
alignment of (0.0, 1.0) aligns the bottom middle of the image with the
middle of the bottom edge of its layout bounds.
If the pixels are not perfectly aligned with the screen pixels, or if the
image itself is of a low quality, FilterQuality.none may produce
undesirable artifacts. Consider using other FilterQuality values to
improve the rendered image quality in this case. Pixels may be misaligned
with the screen pixels as a result of transforms or scaling.
opacity can be used to adjust the opacity of the image.
Used to combine color with this image.
loadingBuilder is the builder which can show the download progress of an image.
Usage: loadingBuilder(context, FastCachedProgressData progressData){return Text('${progress.downloadedBytes ~/ 1024} / ${progress.totalBytes! ~/ 1024} kb')}
If cacheWidth or cacheHeight are provided, it indicates to the
engine that the image must be decoded at the specified size. The image
will be rendered to the constraints of the layout or width and height
regardless of these parameters. These parameters are primarily intended
to reduce the memory usage of ImageCache.
If non-null, this color is blended with each image pixel using colorBlendMode.
If the image is of a high quality and its pixels are perfectly aligned
with the physical screen pixels, extra quality enhancement may not be
necessary. If so, then FilterQuality.none would be the most efficient.
width width of the image