Skip to content

Conversation

@SanskritiSharma-13
Copy link

This PR adds a pre-caching example for Cloudinary images in Flutter, improving image load performance.

Closes #19

Brief Summary of Changes

Added a new section in README.md for pre-caching Cloudinary images in Flutter to improve app performance and user experience.

What does this PR address?

Are tests included?

  • Yes
  • No

Reviewer, please note:

This PR only updates the documentation (README.md) to include a pre-caching example. No code logic is changed.

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I ran the full test suite before pushing the changes and all the tests pass.

This PR adds a pre-caching example for Cloudinary images in Flutter, improving image load performance.

Closes cloudinary#19
@SanskritiSharma-13
Copy link
Author

Hi, I’ve added a pre-caching example in the README to resolve issue #19. Please review my PR when possible. Thank you! 😊

@tommyg-cld tommyg-cld requested a review from adimiz1 October 7, 2025 13:11
);
// Preload the image into cache
precacheImage(image.imageProvider, context);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the pre-caching documentation! However, there's an issue with the implementation that will prevent it from compiling.

Problem

The code uses image.imageProvider, but this property is not accessible on CldImageWidget. If you try to compile this code, you'll get the following error:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to precache an image

2 participants