-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
feat: Country selector redesign #5483
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @g123k!
Honestly I'm not able to fully review this PR.
Too complex for me, especially for a PR that doesn't solve an issue.
My main concern is about the maintenance of an open-source project using a not-that-popular language.
If needed I can give more details about my impressions.
It is actually a requirement for an upcoming feature: being able to manage the country, from outside of this picker. I acknowledge that this PR also contains some V2 widgets, but once again, we will need them. My only concern is about your statement about a "not-that-popular language". Could you elaborate a bit more? |
@g123k About my "not-that-popular language" statement: I mean that flutter is not as widespread as java or python, where we can find tons of developers and tons of experts. More specifically, regarding the current PR:
I don't say that the video is not good looking. |
Hi @monsieurtanuki, my answers are just below 🙂
On this particular point, I’m sorry, but I don’t agree with you.
One thing the app is clearly missing today is splitting Widgets into sub-widgets. This is a recommended pattern to gain performance (@see the Element and Render trees)
Similar to my point just above: we need something more generic
True, but my point is to use this PR to introduce V2 widgets.
This computation is done on a Screen with multiple sub-widgets and once again, it can be inserted anywhere in the app (e.g.: the tagline, with the camera on top of it)
Added values are:
To be honest, if it was my code (= personal repo), it would be just 70-80% of what I’d like to do. I’ve already done it in many other applications, and the other developers have never criticized it. In general, I can add to the wiki or somewhere else a list of good practices for newcomers if that can help to clarify things. I would like not to loose too much time on arguing. I want the application to adhere to the recommended Flutter patterns and to enhance maintainability in the long run. Surely, there are things that can be modified, but not the general pattern. |
Hi @g123k! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 on my side @g123k, you're the one Smoothie-side calling the shots.
- We need to get the logic of settings separated and streghtened, so that we can use it in context throughout the app.
- We need to get moving on delivering the PoC, which does include more Flutter standard practises.
OK, thank you both for your feedback 👍 |
Hi everyone!
I've totally redesigned the country picker to switch from a Dialog to a full screen.
In a near future, it will simplify the addition of the country detection (based on the user IP).
The screen has two modes:
In terms of code, the UI doesn't manage any data 🎉
Loading and reordering countries are done in an
Isolate
.The UI is fully accessible + dark mode compatible.
There are also new Widgets from the POC (Top bar, bottom bar…).
Video with manual validation:
https://github.com/openfoodfacts/smooth-app/assets/246838/c0c901ec-aeae-49a4-821b-33b93e1a5f5b