Add example for precaching Cloudinary images (#19)#37
Open
SanskritiSharma-13 wants to merge 1 commit intocloudinary:masterfrom
Open
Add example for precaching Cloudinary images (#19)#37SanskritiSharma-13 wants to merge 1 commit intocloudinary:masterfrom
SanskritiSharma-13 wants to merge 1 commit intocloudinary:masterfrom
Conversation
This PR adds a pre-caching example for Cloudinary images in Flutter, improving image load performance. Closes cloudinary#19
Author
|
Hi, I’ve added a pre-caching example in the README to resolve issue #19. Please review my PR when possible. Thank you! 😊 |
adimiz1
requested changes
Oct 30, 2025
| ); | ||
|
|
||
| // Preload the image into cache | ||
| precacheImage(image.imageProvider, context); |
Contributor
There was a problem hiding this comment.
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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?
Reviewer, please note:
This PR only updates the documentation (README.md) to include a pre-caching example. No code logic is changed.
Checklist: