Skip to content

Commit

Permalink
chore: A better name for NutriScore v2 guide in the FAQ (#5380)
Browse files Browse the repository at this point in the history
* A better name for NutriScore v2 guide in the FAQ

* Hide the icon

* Update packages/smooth_app/lib/l10n/app_en.arb

---------

Co-authored-by: Pierre Slamich <[email protected]>
  • Loading branch information
g123k and teolemon authored Jun 15, 2024
1 parent 3b88ac0 commit 621184c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/smooth_app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2665,6 +2665,7 @@
"faq_title_install_beauty": "Install Open Beauty Facts to create a cosmetic database",
"faq_title_install_pet": "Install Open Pet Food Facts to create a pet food database",
"faq_title_install_product": "Install Open Products Facts to create a products database to extend the life of objects",
"faq_nutriscore_nutriscore": "New calculation of the Nutri-Score: what's new?",
"contact_title_pro_page": "Pro? Import your products in Open Food Facts",
"contact_title_pro_email": "Producer Contact",
"contact_title_press_page": "Press Page",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class UserPreferencesFaq extends AbstractUserPreferences {
),
),
_getListTile(
title: appLocalizations.nutriscore_generic,
title: appLocalizations.faq_nutriscore_nutriscore,
leadingSvg: SvgCache.getAssetsCacheForNutriscore(
NutriScoreValue.b,
true,
Expand All @@ -76,6 +76,12 @@ class UserPreferencesFaq extends AbstractUserPreferences {
builder: (BuildContext context) => const GuideNutriscoreV2(),
),
),

/// Hide the icon
icon: const Icon(
Icons.info,
size: 0.0,
),
),
_getNutriListTile(
title: appLocalizations.ecoscore_generic,
Expand Down

0 comments on commit 621184c

Please sign in to comment.