Skip to content

Commit

Permalink
Hide the NutriScore V2 guide in France (#5399)
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k committed Jun 18, 2024
1 parent 64d38f1 commit 4b4f387
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions packages/smooth_app/lib/pages/preferences/user_preferences_faq.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,24 +65,25 @@ class UserPreferencesFaq extends AbstractUserPreferences {
false,
),
),
_getListTile(
title: appLocalizations.faq_nutriscore_nutriscore,
leadingSvg: SvgCache.getAssetsCacheForNutriscore(
NutriScoreValue.b,
true,
),
onTap: () => Navigator.of(context, rootNavigator: true).push(
MaterialPageRoute<void>(
builder: (BuildContext context) => const GuideNutriscoreV2(),
if (userPreferences.userCountryCode != 'fr')
_getListTile(
title: appLocalizations.faq_nutriscore_nutriscore,
leadingSvg: SvgCache.getAssetsCacheForNutriscore(
NutriScoreValue.b,
true,
),
onTap: () => Navigator.of(context, rootNavigator: true).push(
MaterialPageRoute<void>(
builder: (BuildContext context) => const GuideNutriscoreV2(),
),
),
),

/// Hide the icon
icon: const Icon(
Icons.info,
size: 0.0,
/// Hide the icon
icon: const Icon(
Icons.info,
size: 0.0,
),
),
),
_getNutriListTile(
title: appLocalizations.ecoscore_generic,
url: 'https://world.openfoodfacts.org/ecoscore',
Expand Down

0 comments on commit 4b4f387

Please sign in to comment.