Skip to content

Commit

Permalink
Fix links in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
davquar committed Apr 29, 2023
1 parent e13946b commit 1f0d3f5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/screens/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class _SettingsPageState extends State<SettingsPage> {
static const String _repoUrl = 'https://github.com/davquar/halfdot';
static const String _license = 'MIT';
static const String _licenseUrl =
'https://github.com/davquar/halfdot/LICENSE';
'https://github.com/davquar/halfdot/blob/main/LICENSE';
static const String _privacyUrl =
'https://github.com/davquar/halfdot/PRIVACY.md';
'https://github.com/davquar/halfdot/blob/main/PRIVACY.md';

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -86,19 +86,19 @@ class _SettingsPageState extends State<SettingsPage> {
trailing: const Icon(Icons.link),
),
ListTile(
title: Text(AppLocalizations.of(context)!.privacyPolicy),
subtitle: const Text(_privacyUrl),
title: Text(AppLocalizations.of(context)!.sourceCode),
subtitle: const Text(_repoUrl),
onTap: () => launchUrlString(
_privacyUrl,
_repoUrl,
mode: LaunchMode.externalApplication,
),
trailing: const Icon(Icons.link),
),
ListTile(
title: Text(AppLocalizations.of(context)!.sourceCode),
subtitle: const Text(_repoUrl),
title: Text(AppLocalizations.of(context)!.privacyPolicy),
subtitle: const Text(_privacyUrl),
onTap: () => launchUrlString(
_repoUrl,
_privacyUrl,
mode: LaunchMode.externalApplication,
),
trailing: const Icon(Icons.link),
Expand Down

0 comments on commit 1f0d3f5

Please sign in to comment.