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

Refactor image retrieval #320

Merged
merged 1 commit into from Aug 22, 2020
Merged

Refactor image retrieval #320

merged 1 commit into from Aug 22, 2020

Conversation

renancaraujo
Copy link
Member

@renancaraujo renancaraujo commented Aug 22, 2020

This makes the image retrieval process not rely on a FutureBuilder.
Previously we recreated Image behavior by showing a loader whilst the image loads, using a completer to detect when the image had finished load.
Now we rely only on the good old state and some ifs in the build method.
Also, we have split that code from the custom child code. The main widget had logics for both image and custom child modes. Now we split that into two internal widgets, the wrappers.

This should resolve the folowing issues #316 #303

@renancaraujo renancaraujo force-pushed the loading-hero branch 2 times, most recently from c9c3283 to 13a3a4a Compare August 22, 2020 04:15
This makes the image retrieval process not rely on a FutureBuilder.
Previously we recreated `Image` behavior by showing a loader whilst the image loads, using a completer to detect when the image had finished load.
Now we rely only on the good old state and some ifs in the build method.
Also, we have split that code from the custom child code. The main widget had logics for both image and custom child modes. Now we split that into two internal widgets, the wrappers.
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

1 participant