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
example/README.md
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
You can install packages from the command line:
with Flutter:
$ flutter packages get
Alternatively, your editor might support flutter packages get
.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:cached_network_image/cached_network_image.dart';
Version | Uploaded | Documentation | Archive |
---|---|---|---|
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 |
|
|
0.4.1+1 | May 1, 2018 |
|
|
0.4.1 | Apr 27, 2018 |
|
|
0.4.0 | Apr 14, 2018 |
|
|
0.3.0 | Feb 9, 2018 |
|
|
Popularity:
Describes how popular the package is relative to other packages.
[more]
|
100
|
Health:
Code health derived from static analysis.
[more]
|
100
|
Maintenance:
Reflects how tidy and up-to-date the package is.
[more]
|
95
|
Overall:
Weighted score of the above.
[more]
|
99
|
We analyzed this package on Feb 14, 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.
Fix lib/src/cached_image_widget.dart
. (-0.50 points)
Analysis of lib/src/cached_image_widget.dart
reported 1 hint:
line 195 col 3: The method '_nonAnimatedWidget' isn't used.
Package is pre-release. (-5 points)
Pre-release versions should be used with caution; their API can change in breaking ways.
Package | Constraint | Resolved | Available |
---|---|---|---|
Direct dependencies | |||
Dart SDK | >=2.0.0-dev.28.0 <3.0.0 | ||
flutter | 0.0.0 | ||
flutter_cache_manager | ^0.3.0-beta.3 | 0.3.0-beta.3 | |
Transitive dependencies | |||
async | 2.0.8 | ||
charcode | 1.1.2 | ||
collection | 1.14.11 | ||
convert | 2.1.1 | ||
crypto | 2.0.6 | ||
http | 0.12.0+1 | ||
http_parser | 3.1.3 | ||
meta | 1.1.6 | 1.1.7 | |
path | 1.6.2 | ||
path_provider | 0.4.1 | 0.5.0+1 | |
sky_engine | 0.0.99 | ||
source_span | 1.5.4 | ||
sqflite | 0.12.2+1 | 1.1.0 | |
string_scanner | 1.0.4 | ||
synchronized | 1.5.3+2 | 2.0.2+1 | |
term_glyph | 1.1.0 | ||
typed_data | 1.1.6 | ||
uuid | 1.0.3 | 2.0.0 | |
vector_math | 2.0.8 | ||
Dev dependencies | |||
test | ^1.3.0 |