fiona_image_cache 1.2.0 copy "fiona_image_cache: ^1.2.0" to clipboard
fiona_image_cache: ^1.2.0 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(fionaImageUrl: FionaImageUrl() , 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
150
points
92
downloads

Documentation

API reference

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

MIT (license)

Dependencies

http, path

More

Packages that depend on fiona_image_cache