cached_network_image 0.3.0-alpha copy "cached_network_image: ^0.3.0-alpha" to clipboard
cached_network_image: ^0.3.0-alpha copied to clipboard

outdatedDart 1 only

Flutter library to load and cache network images

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.3.0-alpha"

Add it to your dart file:

import 'package:cached_network_image/cached_network_image.dart';

How to use #

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))

How it works #

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

6.43k
likes
0
points
1.99M
downloads

Publisher

verified publisherbaseflow.com

Weekly Downloads

Flutter library to load and cache network images

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_cache_manager

More

Packages that depend on cached_network_image