cloudinary / cloudinary/cloudinary_flutter

How to precache an image

オープン
#19 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。