cloudinary / cloudinary/cloudinary_flutter

How to precache an image

Đang mở
#19 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Dart
Star
11
Fork
9
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.