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

discontinued
outdated

Easily cache your images & save bandwidth Topics Resources

Cached_Image #

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

Usage #

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

initCachedFadeInImage();

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 disposeCachedFadeInImage() when closing app.

disposeCachedFadeInImage();

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
0
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

Easily cache your images & save bandwidth Topics Resources

Repository (GitHub)
View/report issues

License

unknown (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