Add privacy url to about-us

This commit is contained in:
Shawn 2022-12-12 09:32:25 -07:00
parent 1f9bd92f80
commit 883bfaed88
2 changed files with 12 additions and 5 deletions

View File

@ -53,21 +53,26 @@ class AboutDialogContent extends StatelessWidget {
'{gskinnerUrl}': [$strings.homeMenuAboutGskinner, 'https://gskinner.com/flutter'], '{gskinnerUrl}': [$strings.homeMenuAboutGskinner, 'https://gskinner.com/flutter'],
}), }),
...buildSpan('\n\n'), ...buildSpan('\n\n'),
...buildSpan($strings.homeMenuAboutLearn('{wonderousUrl}'), linkSupplants: { ...buildSpan('${$strings.homeMenuAboutLearn('{wonderousUrl}')} ', linkSupplants: {
'{wonderousUrl}': [$strings.homeMenuAboutApp, 'https://wonderous.app'], '{wonderousUrl}': [$strings.homeMenuAboutApp, 'https://wonderous.app'],
}), }),
...buildSpan('\n\n'),
...buildSpan($strings.homeMenuAboutSource('{githubUrl}'), linkSupplants: { ...buildSpan($strings.homeMenuAboutSource('{githubUrl}'), linkSupplants: {
'{githubUrl}': [$strings.homeMenuAboutRepo, 'https://github.com/gskinnerTeam/flutter-wonderous-app'], '{githubUrl}': [
'${$strings.homeMenuAboutRepo}',
'https://github.com/gskinnerTeam/flutter-wonderous-app'
],
}),
...buildSpan(' As explained in our {privacyUrl} we do no collect any personal information.',
linkSupplants: {
'{privacyUrl}': ['Privacy Policy', 'https://flutter.gskinner.com/privacy'],
}), }),
...buildSpan('\n\n'), ...buildSpan('\n\n'),
...buildSpan($strings.homeMenuAboutPublic('{metUrl}'), linkSupplants: { ...buildSpan('${$strings.homeMenuAboutPublic('{metUrl}')} ', linkSupplants: {
'{metUrl}': [ '{metUrl}': [
$strings.homeMenuAboutMet, $strings.homeMenuAboutMet,
'https://www.metmuseum.org/about-the-met/policies-and-documents/open-access' 'https://www.metmuseum.org/about-the-met/policies-and-documents/open-access'
], ],
}), }),
...buildSpan('\n\n'),
...buildSpan($strings.homeMenuAboutPhotography('{unsplashUrl}'), linkSupplants: { ...buildSpan($strings.homeMenuAboutPhotography('{unsplashUrl}'), linkSupplants: {
'{unsplashUrl}': [$strings.homeMenuAboutUnsplash, 'https://unsplash.com/@gskinner/collections'], '{unsplashUrl}': [$strings.homeMenuAboutUnsplash, 'https://unsplash.com/@gskinner/collections'],
}), }),

View File

@ -13,6 +13,8 @@ class HomeMenu extends StatelessWidget {
void _handleAboutPressed(BuildContext context) async { void _handleAboutPressed(BuildContext context) async {
PackageInfo packageInfo = await PackageInfo.fromPlatform(); PackageInfo packageInfo = await PackageInfo.fromPlatform();
// ignore: use_build_context_synchronously
if (!context.mounted) return;
showAboutDialog( showAboutDialog(
context: context, context: context,
applicationName: $strings.appName, applicationName: $strings.appName,