Skip to content

Refactor image retrieval#320

Merged
renancaraujo merged 1 commit intomasterfrom
loading-hero
Aug 22, 2020
Merged

Refactor image retrieval#320
renancaraujo merged 1 commit intomasterfrom
loading-hero

Conversation

@renancaraujo
Copy link
Copy Markdown
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.

1 participant