cached_network_image 0.2.1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 50

Cached network image

pub package Donate

A flutter library to show images from the internet and keep them in the cache directory.

How to add

Add this to your package's pubspec.yaml file:

dependencies:
  cached_network_image: "^0.2.1"

Add it to your dart file:

import 'package:cached_network_image/cached_network_image.dart';

How to use

The CachedNetworkImage can be used through the ImageProvider.

new Image(image: new CachedNetworkImageProvider(url))

The old CachedNetworkImage is removed, for a placeholder image use a FadeInImage.

How it works

The cached network images stores and retrieves files using the flutter_cache_manager.

[0.2.1] - 2018-01-08

  • Moved from OneFrameImageStreamCompleter to MultiFrameImageStreamCompleter.
  • Updated CacheManager dependency for critical bug fix.

[0.2.0] - 2017-12-29

  • Breaking change Removed CachedNetworkImage. From now on only the ImageProvider is supported. For a placeholder use FadeInImage. See also "Fallback for Network Images".
  • Moved CacheManager to a separate library for a more generic purpose.

[0.1.0] - 2017-12-21

  • Breaking change. Upgraded to Gradle 4.1 and Android Studio Gradle plugin 3.0.1. Older Flutter projects need to upgrade their Gradle setup as well in order to use this version. Instructions can be found here.

[0.0.2] - 10 December 2017

Added an ImageProvider and improved documentation

[0.0.1] - 2 December 2017

Initial release, should be polished

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  cached_network_image: ^0.2.1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:cached_network_image/cached_network_image.dart';
  
Version Uploaded Documentation Archive
0.5.1 Nov 19, 2018 Go to the documentation of cached_network_image 0.5.1 Download cached_network_image 0.5.1 archive
0.5.0+1 Nov 12, 2018 Go to the documentation of cached_network_image 0.5.0+1 Download cached_network_image 0.5.0+1 archive
0.5.0 Oct 13, 2018 Go to the documentation of cached_network_image 0.5.0 Download cached_network_image 0.5.0 archive
0.4.2 Aug 30, 2018 Go to the documentation of cached_network_image 0.4.2 Download cached_network_image 0.4.2 archive
0.4.1+1 May 1, 2018 Go to the documentation of cached_network_image 0.4.1+1 Download cached_network_image 0.4.1+1 archive
0.4.1 Apr 27, 2018 Go to the documentation of cached_network_image 0.4.1 Download cached_network_image 0.4.1 archive
0.4.0 Apr 14, 2018 Go to the documentation of cached_network_image 0.4.0 Download cached_network_image 0.4.0 archive
0.3.0 Feb 9, 2018 Go to the documentation of cached_network_image 0.3.0 Download cached_network_image 0.3.0 archive
0.2.1 Jan 8, 2018 Go to the documentation of cached_network_image 0.2.1 Download cached_network_image 0.2.1 archive
0.2.0 Dec 29, 2017 Go to the documentation of cached_network_image 0.2.0 Download cached_network_image 0.2.0 archive

All 17 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
99
Health:
Code health derived from static analysis. [more]
--
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
--
Overall:
Weighted score of the above. [more]
50
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Analysis issues and suggestions

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see https://www.dartlang.org/dart-2#migration.

Maintenance issues and suggestions

Running dartdoc failed. (-10 points)

Make sure dartdoc runs without any issues.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0