cloudinary / cloudinary/cloudinary_flutter
How to precache an image
- Vorherrschende Sprache
- Dart
- Sterne
- 11
- Forks
- 9
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
## Feature request for Cloudinary Flutter SDK
Precache a cloudinary image
## Explain your use case
I wanted to be able to precache an image so that when the CldImageWidget is built, it'll already have the image loaded as it has been precached
## Describe the problem you’re trying to solve
Have an image precached so that it'll be loaded before the CldImageWidget is built, leading to a more responsive feeling
## Do you have a proposed solution?
I was thinking of using something like this (note precacheImage is flutter's builtin method, yet it requires an ImageProvider as it's argument):
`precacheImage(NetworkImage(publicId), context);
`
Instead of NetworkImage, use a cloudinary image provider.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.