image_cache 1.0.1 copy "image_cache: ^1.0.1" to clipboard
image_cache: ^1.0.1 copied to clipboard

A flutter package which shows an image. Gets it from an URL and then saves it in your local storage.

This package provides a widget to show images from an url and them get it from your local storage. It uses image_cache package

Features #

ImageCache downloads the image and saves it into your local path, then shows it.

Getting started #

It's very simple to use, you only have to define the cache folder name where you want to save the downloaded files.

Usage #

You have to create the widget with imageUrl, width & height:

ImageCache imgCache = ImageCache(imageUrl: "https://example.com/image.png",
                width: (BuildContext context){
                  return 150;
                },
                height: (BuildContext context){
                  return 150;
                }
            );

How it works #

The widget stores and retrieves files using the file_cache_provider.

Additional information #

2
likes
150
points
42
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter package which shows an image. Gets it from an URL and then saves it in your local storage.

Repository (GitHub)

Topics

#cache #file #image

Documentation

API reference

License

MIT (license)

Dependencies

file_cache_provider, flutter, loading_animation_widget, path_provider

More

Packages that depend on image_cache