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

fix: #2776 - more standard user preferences app bar #2780

Merged
merged 2 commits into from
Aug 12, 2022

Conversation

monsieurtanuki
Copy link
Contributor

Impacted files:

  • user_preferences_account.dart: unrelated uniformization of list tile display in preferences
  • user_preferences_food.dart: unrelated uniformization of list tile display in preferences
  • user_preferences_page.dart: removed the sliver effect

What

  • The user preference pages used a "sliver" effect, that had side effects on the app bar display.
  • No more sliver, no more problem.

Screenshot

Capture d’écran 2022-08-12 à 08 34 25 Capture d’écran 2022-08-12 à 08 34 50
Capture d’écran 2022-08-12 à 08 35 18 Capture d’écran 2022-08-12 à 08 35 36
Capture d’écran 2022-08-12 à 08 35 54

Fixes bug(s)

Impacted files:
* `user_preferences_account.dart`: unrelated uniformization of list tile display in preferences
* `user_preferences_food.dart`: unrelated uniformization of list tile display in preferences
* `user_preferences_page.dart`: removed the sliver effect
@codecov-commenter
Copy link

Codecov Report

Merging #2780 (11d13ce) into develop (2ea0da3) will decrease coverage by 1.81%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           develop   #2780      +/-   ##
==========================================
- Coverage     8.86%   7.04%   -1.82%     
==========================================
  Files          161     218      +57     
  Lines         6623   10640    +4017     
==========================================
+ Hits           587     750     +163     
- Misses        6036    9890    +3854     
Impacted Files Coverage Δ
...kages/smooth_app/lib/widgets/attribute_button.dart 0.00% <0.00%> (-92.00%) ⬇️
...s/smooth_app/lib/data_models/user_preferences.dart 8.73% <0.00%> (-23.57%) ⬇️
packages/smooth_app/lib/themes/smooth_theme.dart 62.26% <0.00%> (-20.72%) ⬇️
...p/lib/generic_lib/dialogs/smooth_alert_dialog.dart 15.11% <0.00%> (-19.10%) ⬇️
...mooth_app/lib/data_models/product_preferences.dart 21.68% <0.00%> (-9.75%) ⬇️
packages/smooth_app/lib/main.dart 14.65% <0.00%> (-3.24%) ⬇️
.../smooth_app/lib/pages/onboarding/welcome_page.dart 0.00% <0.00%> (-3.13%) ⬇️
.../smooth_app/lib/pages/onboarding/scan_example.dart 0.00% <0.00%> (-2.28%) ⬇️
...ackages/smooth_app/lib/pages/scan/scan_header.dart 2.50% <0.00%> (-2.27%) ⬇️
...p/lib/pages/onboarding/consent_analytics_page.dart 0.00% <0.00%> (-1.57%) ⬇️
... and 237 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@monsieurtanuki
Copy link
Contributor Author

Not 100% related and just trying: what about this?
Capture d’écran 2022-08-12 à 09 53 29

@M123-dev
Copy link
Member

Really like the looks, not just from the PR but also from your suggestion. but it will likely again cause scroll problems as we had with the sliders

@monsieurtanuki
Copy link
Contributor Author

@M123-dev No problem. I'll do that in a different PR today.

@M123-dev
Copy link
Member

Don't rush doing it there are a lot of things we have to consider for the preferences should probably be discussed first

@monsieurtanuki
Copy link
Contributor Author

@M123-dev I just have fun doing it. It can be merged much later, or never.
Anyway it can't be worse than the current display.

Copy link
Member

@M123-dev M123-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @monsieurtanuki

@monsieurtanuki monsieurtanuki merged commit 4abe9fe into openfoodfacts:develop Aug 12, 2022
@monsieurtanuki
Copy link
Contributor Author

@M123-dev Thank you for your review!

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.

Placement of Food prefs is ugly
3 participants