Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image get from cache only #47

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Image get from cache only #47

wants to merge 7 commits into from

Conversation

rmarau
Copy link

@rmarau rmarau commented Jun 1, 2018

New feature: Adds the possibility to show the image only if it is cached - skips the network download.

Bug fix: When an image is not valid (the codec fails), the errorWidget was not replacing the placeholder.

Also Fixes a deprecation warning from dart2.

@JohannesKaufmann
Copy link

@renefloor I think that this is a neat feature. My use case would be:

  • user is on mobile data
  • show the high resolution image if it is in the cache
  • if it's not found show a low resolution image

That way the user can enjoy a high resolution image while on wifi & does not download a high resolution image while away from home.

The most simple solution for me would be to switch urls based on the connectivity but that would mean that while away from home all images would be downloaded again in low resolution even if the high resolution images are still in the cache.


Another option would be a function (for example bool isCached(String url)) that exposes wether the image was found in the cache.

@Daaaab
Copy link

Daaaab commented Feb 18, 2019

Was about to post this feature, yet I've found this. It would be very useful since I'm using Firebase storage, as my backend, and I don't want to download all images every single time, to stay in my transfer limits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants