fiona_image_cache 1.1.1 copy "fiona_image_cache: ^1.1.1" to clipboard
fiona_image_cache: ^1.1.1 copied to clipboard

This package helps your app to cache an image when get it from an URI.

example/fiona_image_cache_example.dart

import 'package:fiona_image_cache/fiona_image_cache.dart';
import 'package:fiona_image_cache/src/data/cache_file_repository_in_memory.dart';

void main() {
  var fionaCache = FionaImageCache(repository:CacheFileRepositoryInMemory(), cacheFolder: "my_cache_folder");
  String url =
      "https://picsum.photos/400.jpg";

  print('Saving: $url');
  /*fionaCache.save(url).then((cacheFile){
    print('Saved image: ${cacheFile.localName}');
  });*/

  fionaCache.getImagePath(url).then((imagePath){
    print('Saved image path: $imagePath');
  });

}
6
likes
0
points
86
downloads

Publisher

unverified uploader

Weekly Downloads

This package helps your app to cache an image when get it from an URI.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, path

More

Packages that depend on fiona_image_cache