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

Advantage over FadeInImage? #19

Closed
btastic opened this issue Feb 25, 2018 · 1 comment
Closed

Advantage over FadeInImage? #19

btastic opened this issue Feb 25, 2018 · 1 comment

Comments

@btastic
Copy link

btastic commented Feb 25, 2018

Hey there,

I just saw your library and looked at some of the code and it seems to be very similar to what FadeInImage does.

What are the main differences / advantages over FadeInImage?

@renefloor
Copy link
Collaborator

Previously I also suggested to use FadeInImage to fade from a placeholder to the cachednetworkimage. If you want to do that I even think FadeInImage is the better option in combination with a CachedNetworkImageProvider. I got quite some requests to also have an option for a placeholder widget, such as a progressindicator, and a seperate widget for when the image fails to load. These two are not possible with FadeInImage and for those options you can use the CachedNetworkImage.
As I could not find a way to catch the error in a generic ImageProvider I had to couple it with my own imageprovider. I will probably have a look at the flutter source and submit a pull request to have this option in all imageproviders and then I will probably make the CachedNetworkImage more generic for all imageproviders.

@expilu expilu mentioned this issue Jul 23, 2020
2 tasks
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

No branches or pull requests

2 participants