Skip to content

ghunter99/flutter_cached_network_image

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cached network image

BREAKING CHANGES IN 0.6.0

Widget now uses builders for the placeholder and error widget and uses sqflite for cache management. See the docs for more information.

pub package Donate

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

How to use

The CachedNetworkImage can be used directly or through the ImageProvider.

CachedNetworkImage(
        imageUrl: "http://via.placeholder.com/350x150",
        placeholder: (context, url) => new CircularProgressIndicator(),
        errorWidget: (context, url, error) => new Icon(Icons.error),
     ),
Image(image: new CachedNetworkImageProvider(url))

How it works

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

About

Download, cache and show images in a flutter app

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 92.1%
  • Ruby 4.8%
  • Objective-C 2.1%
  • Java 1.0%