cached_image 0.0.3 copy "cached_image: ^0.0.3" to clipboard
cached_image: ^0.0.3 copied to clipboard

discontinued

Easily cache your images & save bandwidth

Cached_Image #

This package will store locally your images in order to save bandwidth & ressources.

Usage #

The function initializeCachedImage() must be placed after WidgetsFlutterBinding.ensureInitialized()

initializeCachedImage();

You can define the size in megabytes(e.g. 100 MB) for cacheMaxSize. It will help maintain the performance of your app. Set showLogs to true to show logs about the cache behavior & sizes.

Call disposeCachedImage() when closing app.

disposeCachedImage();

Example #

CachedImage(
      uniqueId: 'abc',
      imageUrl: 'https://www.foo.bar/image.jpg',
      width: 100,
      height: 100,
      startLoadingOnlyWhenVisible: false,
      assetErrorImage: 'assets/error.jpg',
      showCircularProgressIndicator: false,
      customLoadingProgressIndicator: CustomCircularProgressIndicator(),
      fadeInDuration: const Duration(milliseconds: 2000),
    );
0
likes
115
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

Easily cache your images & save bandwidth

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

dio, flat_buffers, flutter, objectbox, objectbox_flutter_libs, path, path_provider, permission_handler, uuid, visibility_detector

More

Packages that depend on cached_image