Skip to content

fix: 7473 - nutrition facts with not pinned and more compact header#7510

Open
monsieurtanuki wants to merge 3 commits into
openfoodfacts:developfrom
monsieurtanuki:fix/7473
Open

fix: 7473 - nutrition facts with not pinned and more compact header#7510
monsieurtanuki wants to merge 3 commits into
openfoodfacts:developfrom
monsieurtanuki:fix/7473

Conversation

@monsieurtanuki
Copy link
Copy Markdown
Contributor

What

The pinned header in the nutrition page prevented users from accessing the important thing: the text fields.
Here we unpin the header: when we scroll down the header disappears and leaves all the needed space.
The header itself changes, as it was unbalanced between a long description text and an action button.

Screenshots

before after
Screenshot_20260520_185230 Screenshot_20260521_084547
Screenshot_20260520_185239 Screenshot_20260521_084943

Fixes bug(s)

Part of

Impacted files

  • nutrition_page.dart: unpinned the sliver header, display the text and the button in a column instead of a row
  • pubspec.lock: wtf
  • smooth_sliver_card.dart: added a "pinned" parameter

Impacted files:
* `nutrition_page.dart`: unpinned the sliver header, display the text and the button in a column instead of a row
* `pubspec.lock`: wtf
* `smooth_sliver_card.dart`: added a "pinned" parameter
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 21, 2026

Codecov Report

❌ Patch coverage is 0% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 8.99%. Comparing base (4d9c7fc) to head (1b6ecb1).
⚠️ Report is 1388 commits behind head on develop.

Files with missing lines Patch % Lines
...b/pages/product/nutrition_page/nutrition_page.dart 0.00% 22 Missing ⚠️
...pp/lib/generic_lib/widgets/smooth_sliver_card.dart 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           develop   #7510      +/-   ##
==========================================
- Coverage     9.54%   8.99%   -0.56%     
==========================================
  Files          325     638     +313     
  Lines        16411   37286   +20875     
==========================================
+ Hits          1567    3353    +1786     
- Misses       14844   33933   +19089     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 💬 To discuss and validate

Development

Successfully merging this pull request may close these issues.

[Bug: Accessibility] The “Large Text” feature in iOS breaks the input for 'Nutritional Value'

2 participants