utils/cached_decode_image_widget library
使用请参考 第三方库cached_network_image 类名由CachedNetworkImage换成CachedNetworkDecodeImage即可
Classes
- CachedNetworkDecodeImage
- Image widget to show NetworkImage with caching functionality.
Typedefs
-
ImageWidgetBuilder
= Widget Function(BuildContext context, ImageProvider<
Object> imageProvider) - Builder function to create an image widget. The function is called after the ImageProvider completes the image loading.
- LoadingErrorWidgetBuilder = Widget Function(BuildContext context, String url, dynamic error)
- Builder function to create an error widget. This builder is called when the image failed loading, for example due to a 404 NotFound exception.
- PlaceholderWidgetBuilder = Widget Function(BuildContext context, String url)
- Builder function to create a placeholder widget. The function is called once while the ImageProvider is loading the image.
- ProgressIndicatorBuilder = Widget Function(BuildContext context, String url, DownloadProgress progress)
- Builder function to create a progress indicator widget. The function is called every time a chuck of the image is downloaded from the web, but at least once during image loading.