-
-
Notifications
You must be signed in to change notification settings - Fork 287
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
fix: The nutrition page is unusable on iOS #4265
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4265 +/- ##
===========================================
- Coverage 10.81% 10.81% -0.01%
===========================================
Files 287 287
Lines 14216 14221 +5
===========================================
Hits 1538 1538
- Misses 12678 12683 +5
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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!
As we're sometimes going back and forth on the matter of focus, especially when the behavior is different on iOS and android, let me suggest two things:
- what would happen if we didn't use explicitly focus and let flutter figure out that widgets in a column should be dealt with in the same order? Would that work? Wouldn't the code be easier to maintain then?
- if the previous suggestion fails, I strongly suggest an explicit comment like "CAUTION - LEAVE THE FOCUS AS THEY ARE - DIFFERENT BEHAVIOR ON IOS AND ANDROID"
I think the issue was actually on both platforms and not only on iOS. Depending on the default behavior could work, but for accessibility, it's better to explicitly provide the next node. |
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.
093c77a
to
9c3ede2
Compare
I forgot to merge this one, so let's do this. |
Hi everyone,
On iOS, the nutrition page is pretty much unusable because we create focus nodes on every builds.
This is absolutely not necessary and creates a weird issue, preventing sometimes entering values.
Before: https://github.com/openfoodfacts/smooth-app/assets/246838/e1672ad1-7d24-41aa-9232-81e75b8168f0
After: https://github.com/openfoodfacts/smooth-app/assets/246838/be172123-46f9-4c2d-b296-79271d01c173