forked from openfoodfacts/smooth-app
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 4551 - minor cosmetic changes on settings display (openfoodfact…
…s#4589) * feat: 4551 - minor cosmetic changes on settings display Impacted files: * `app_en.arb`: new "join the skill pool" label * `user_preferences_connect.dart`: added dividers; changed the newsletter icon; same email icon everywhere * `user_preferences_contribute.dart`: added "contribute" and a "join the pool" items; minor refactoring * `user_preferences_faq.dart`: changed the "feedback" icon * feat: 4551 - changed one icon * feat: 4551 - smaller nutrient icon (from 2 to 1.5 = -25%) * Update packages/smooth_app/lib/l10n/app_en.arb --------- Co-authored-by: Pierre Slamich <[email protected]>
- Loading branch information
1 parent
36cd216
commit 8193cf1
Showing
4 changed files
with
46 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,6 +83,7 @@ class UserPreferencesConnect extends AbstractUserPreferences { | |
url: 'https://blog.openfoodfacts.org', | ||
leadingIconData: Icons.newspaper, | ||
), | ||
const Divider(), | ||
_getListTile( | ||
title: appLocalizations.support_via_forum, | ||
url: 'https://forum.openfoodfacts.org/', | ||
|
@@ -93,6 +94,7 @@ class UserPreferencesConnect extends AbstractUserPreferences { | |
url: 'https://slack.openfoodfacts.org/', | ||
leadingIconData: Icons.chat, | ||
), | ||
const Divider(), | ||
_getListTile( | ||
title: appLocalizations.contact_title_pro_page, | ||
url: ProductQuery.replaceSubdomain( | ||
|
@@ -102,35 +104,37 @@ class UserPreferencesConnect extends AbstractUserPreferences { | |
), | ||
_getListTile( | ||
title: appLocalizations.contact_title_pro_email, | ||
leadingIconData: Icons.drafts_outlined, | ||
leadingIconData: Icons.drafts, | ||
onTap: () async => _sendEmail( | ||
recipient: | ||
ProductQuery.getLanguage() == OpenFoodFactsLanguage.FRENCH | ||
? '[email protected]' | ||
: '[email protected]', | ||
), | ||
), | ||
const Divider(), | ||
_getListTile( | ||
title: appLocalizations.contact_title_press_page, | ||
url: ProductQuery.replaceSubdomain( | ||
'https://world.openfoodfacts.org/press', | ||
), | ||
leadingIconData: CupertinoIcons.news, | ||
leadingIconData: CupertinoIcons.news_solid, | ||
), | ||
_getListTile( | ||
title: appLocalizations.contact_title_press_email, | ||
leadingIconData: Icons.drafts_outlined, | ||
leadingIconData: Icons.drafts, | ||
onTap: () async => _sendEmail( | ||
recipient: | ||
ProductQuery.getLanguage() == OpenFoodFactsLanguage.FRENCH | ||
? '[email protected]' | ||
: '[email protected]', | ||
), | ||
), | ||
const Divider(), | ||
_getListTile( | ||
title: appLocalizations.contact_title_newsletter, | ||
url: 'https://link.openfoodfacts.org/newsletter-en', | ||
leadingIconData: Icons.subscriptions_outlined, | ||
leadingIconData: CupertinoIcons.news_solid, | ||
), | ||
_getListTile( | ||
title: appLocalizations.support_via_email, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters