Skip to content

Commit

Permalink
Terms of use+legal notices (#4559)
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k authored Aug 17, 2023
1 parent d1a7e9e commit 9c6138d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
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 @@ -315,6 +315,10 @@
"support_via_email_include_logs_dialog_body": "Do you wish to include application logs in attachment to your email?",
"termsOfUse": "Terms of use",
"@termsOfUse": {},
"legalNotices": "Legal notices",
"@legalNotices": {
"description": "A link to open the legal notices on the website"
},
"about_this_app": "About this app",
"@about_this_app": {
"description": "Button label: Opens a pop up window which shows information about the app"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,21 +153,32 @@ class UserPreferencesFaq extends AbstractUserPreferences {
widthFactor: 0.9,
child: Text(appLocalizations.whatIsOff),
),
const SizedBox(height: LARGE_SPACE),
const SizedBox(height: VERY_SMALL_SPACE),
SmoothAlertContentButton(
onPressed: () => LaunchUrlHelper.launchURL(
'https://openfoodfacts.org/who-we-are', true),
label: appLocalizations.learnMore,
icon: Icons.open_in_new,
),
const SizedBox(height: SMALL_SPACE),
const SizedBox(height: VERY_SMALL_SPACE),
SmoothAlertContentButton(
onPressed: () => LaunchUrlHelper.launchURL(
'https://openfoodfacts.org/terms-of-', true),
'https://openfoodfacts.org/terms-of-use',
true,
),
label: appLocalizations.termsOfUse,
icon: Icons.open_in_new,
),
const SizedBox(height: SMALL_SPACE),
const SizedBox(height: VERY_SMALL_SPACE),
SmoothAlertContentButton(
onPressed: () => LaunchUrlHelper.launchURL(
'https://openfoodfacts.org/legal',
true,
),
label: appLocalizations.legalNotices,
icon: Icons.open_in_new,
),
const SizedBox(height: VERY_SMALL_SPACE),
SmoothAlertContentButton(
onPressed: () => showLicensePage(
context: context,
Expand Down

0 comments on commit 9c6138d

Please sign in to comment.