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

feat: 5079 - new deeplink to the Country Eco-Score #5152

Merged
merged 1 commit into from
Apr 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/smooth_app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -1686,6 +1686,10 @@
"@all_search_to_be_completed_title": {
"description": "All products to be completed: list tile title"
},
"categorize_products_country_title": "Help categorize products in your country",
"@categorize_products_country_title": {
"description": "Help categorize products in your country: list tile title"
},
"edit_product_action_retake_picture": "Retake photo",
"@edit_product_action_retake_picture": {
"description": "Product edition - FAB actions - retake a picture"
Expand Down
4 changes: 4 additions & 0 deletions packages/smooth_app/lib/l10n/app_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -1686,6 +1686,10 @@
"@all_search_to_be_completed_title": {
"description": "All products to be completed: list tile title"
},
"categorize_products_country_title": "Aidez-nous pour les catégories des produits dans votre pays",
"@categorize_products_country_title": {
"description": "Help categorize products in your country: list tile title"
},
"edit_product_action_retake_picture": "Reprendre une photo",
"@edit_product_action_retake_picture": {
"description": "Product edition - FAB actions - retake a picture"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,13 @@ class UserPreferencesAccount extends AbstractUserPreferences {
context: context,
localDatabase: localDatabase,
),
_getListTile(
appLocalizations.categorize_products_country_title,
() async => LaunchUrlHelper.launchURL(
'https://hunger.openfoodfacts.org/eco-score?cc=${ProductQuery.getCountry().offTag}',
),
Icons.open_in_new,
),
_getListTile(
appLocalizations.view_profile,
() async => LaunchUrlHelper.launchURL(
Expand Down