How to precache an image

Open
#19 0 comments 0 reactions 0 assignees View on GitHub

@SanskritiSharma-13 is already working on this.

Since Oct 1, 2025.

  • #37 by @SanskritiSharma-13 — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
dart, flutter
Domain
mobile

Research direction

Start by locating CldImageWidget and checking whether the SDK exposes an ImageProvider that can work with Flutter's precacheImage API shown in the issue. Done means a Cloudinary image can be precached before CldImageWidget is built, with a test or usage example demonstrating the behavior.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Dart
Stars
10
Forks
9
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudinary/cloudinary_flutter

All issues in cloudinary/cloudinary_flutter

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.