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

Problems with FadeTransition #141

Closed
AleSpero opened this issue Mar 6, 2019 · 8 comments
Closed

Problems with FadeTransition #141

AleSpero opened this issue Mar 6, 2019 · 8 comments
Labels
status: fixed? Bug possibly fixed in latest version.

Comments

@AleSpero
Copy link

AleSpero commented Mar 6, 2019

Hello,

I'm using your library to render an image which will be the size of the screen.
I made a custom placeholder widget which has a blue background color, but when the image is loaded the screen flashes white because of the fadetransition applied to the image. This is particularly frustrating for the user.

Is there any thing i can do to transition from the color of the placeholder directly to the image avoiding the flashing white of the fadetransition?

I also noticed that changing the ThemeData brightness to dark the image doesn't flash white but does flash a grey color, so i suppose the fadetransition is using a theme data attribute. I tried searching the library source code but i didn't find anything.

Thank you for the good work anyways. :D

@tangtaoit
Copy link

cache_image_demo

tangtaoit pushed a commit to tangtaoit/flutter_cached_network_image that referenced this issue Mar 19, 2019
tangtaoit pushed a commit to tangtaoit/flutter_cached_network_image that referenced this issue Mar 19, 2019
@dshukertjr
Copy link

It would be nice to get this issue fixed

@lifetin
Copy link

lifetin commented Jun 25, 2019

期待

@renefloor
Copy link
Contributor

I guess this is improved in 1.1.0, but not sure.
Can you supply me with an example code?

@dshukertjr
Copy link

Using any placeholder results in this white blink shown by @tangtaoit .

@wrozwad
Copy link

wrozwad commented Jul 26, 2019

The problem is with image transitions because on the moment we have a black background between transions :/

@renefloor
Copy link
Contributor

In 2.3.0-beta it shouldn't fade when the image is already loaded. Love to hear your feedback on that version.

@royston-c
Copy link

@renefloor I haven't fully tested 2.3.0-beta but this it appears to have fixed this issue for me. Cached images no longer fade in. I can also confirm it works with a Hero animation. looks great, nice work! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: fixed? Bug possibly fixed in latest version.
Projects
None yet
Development

No branches or pull requests

7 participants