Skip to content

Comments

Improve product not found dialog#1122

Open
alexisbirling-boop wants to merge 3 commits intowger-project:masterfrom
alexisbirling-boop:improve-product-not-found-dialog
Open

Improve product not found dialog#1122
alexisbirling-boop wants to merge 3 commits intowger-project:masterfrom
alexisbirling-boop:improve-product-not-found-dialog

Conversation

@alexisbirling-boop
Copy link

Proposed Changes

  • Add "Add to Open Food Facts" button when no product is found after barcode scan
  • Improves the dialog on the pop up when no product is found after barcode scan
  • Add widget tests to verify dialog behavior (button visibility and closing behavior)

Related Issue(s)

N/A. rge told me in discord directly

Please check that the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Set a 100 character limit in your editor/IDE to avoid white space diffs in the PR (run dart format .)
  • Updated/added relevant documentation (doc comments with ///).
  • Added relevant reviewers.

Picture of the modified widget

Capture d’écran 2026-02-17 151357

AppLocalizations.of(context).productNotFoundDescription(barcode),
),
),
Padding(
Copy link
Member

Choose a reason for hiding this comment

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

wouldn't this block be shown even when there's results? This should also go inside the if (snapshot.connectionState == ConnectionState.done && ingredient == null). We can put both the productNotFoundDescription and the new productNotFoundOpenFoodFacts in one column.

Also, for consistency, I would just use the default text style

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.

2 participants