A flutter library to show images from the internet and keep them in the cache directory.
The CachedNetworkImage can be used directly or through the ImageProvider.
new CachedNetworkImage( imageUrl: "http://via.placeholder.com/350x150", placeholder: new CircularProgressIndicator(), errorWidget: new Icon(Icons.error), ),
new Image(image: new CachedNetworkImageProvider(url))
The cached network images stores and retrieves files using the flutter_cache_manager.
FadeInImage. See also "Fallback for Network Images".
Added an ImageProvider and improved documentation
Initial release, should be polished
A new Flutter project.
For help getting started with Flutter, view our online documentation.
Add this to your package's pubspec.yaml file:
dependencies: cached_network_image: ^0.6.0-beta+1
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.8.0||May 6, 2019|
|0.7.0||Mar 6, 2019|
|0.6.2||Feb 27, 2019|
|0.6.1||Feb 25, 2019|
|0.6.0+1||Feb 19, 2019|
|0.6.0||Feb 18, 2019|
|0.5.1||Nov 19, 2018|
|0.5.0+1||Nov 12, 2018|
|0.5.0||Oct 13, 2018|
|0.4.2||Aug 30, 2018|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Jun 17, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
lib/src/cached_image_widget.dart. (-0.50 points)
lib/src/cached_image_widget.dart reported 1 hint:
line 195 col 3: The method '_nonAnimatedWidget' isn't used.
Support latest dependencies. (-10 points)
The version constraint in
pubspec.yaml does not support the latest published versions for 2 dependencies.
Package is pre-release. (-5 points)
Pre-release versions should be used with caution; their API can change in breaking ways.
|Dart SDK||>=2.0.0-dev.28.0 <3.0.0|