cached_network_image 0.2.0 copy "cached_network_image: ^0.2.0" to clipboard
cached_network_image: ^0.2.0 copied to clipboard

outdatedDart 1 only

Flutter library to load and cache network images

Cached network image #

pub package

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.0"

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.