smooth-app
smooth-app copied to clipboard
Don't use FutureBuilders
Oh no, please don't use a FutureBuilder
, that's the shittiest Widget ever.
A separated class with a ValueNotifier
-like thing or I don't know which state management solution, but never mix UI with how the data is fetched.
I know the app uses this pattern everywhere, but if I can stop the spreading of this 🦠, I prefer.
Originally posted by @g123k in https://github.com/openfoodfacts/smooth-app/pull/4866#discussion_r1420543848
Hey @monsieurtanuki and @g123k,
I want to start on this. Any alternatives you have in your mind? I recently started open source contribution so i think this would be good challenging task for me.
Hi @ishanvaghani! I'll let @g123k answer you about a better technical solution, as it was his initial remark.
My only suggestion would be to focus on one single class first, e.g. CountrySelector
.