cloudinary / cloudinary/cloudinary_flutter

How to precache an image

未关闭
#19 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Dart
星标
11
派生
9
PR 合并指标
30 天内没有已合并 PR

描述

## 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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。