diff options
author | davidpkj <davidpenkow1@gmail.com> | 2022-08-24 15:38:58 +0200 |
---|---|---|
committer | davidpkj <davidpenkow1@gmail.com> | 2022-08-24 15:38:58 +0200 |
commit | 33bb197557b6222d7db46e02c74fe8442833e295 (patch) | |
tree | 017036dc57cce28fac92aedbcad65249d4f4d1c1 /lib/views/info_view.dart | |
parent | e18cf14cc7d586a90283cf50678b6d53474ef3b8 (diff) |
Minor bug fixes and updates
Diffstat (limited to 'lib/views/info_view.dart')
-rw-r--r-- | lib/views/info_view.dart | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/lib/views/info_view.dart b/lib/views/info_view.dart index e2faeab..04c3887 100644 --- a/lib/views/info_view.dart +++ b/lib/views/info_view.dart @@ -14,8 +14,9 @@ class InfoView extends StatefulWidget { } class _InfoViewState extends State<InfoView> { - String websiteUrl = "https://davidpkj.github.io/kulinar_app.html"; - String sourceCodeUrl = "https://github.com/davidpkj/kulinar_app"; + String websiteURL = "https://davidpenkowoj.de"; + String sourceCodeURL = "http://git.davidpenkowoj.de/kulinar_app.git"; + String privacyNoticeURL = "https://davidpenkowoj.de/static/files/privacy-notice.html"; @override Widget build(BuildContext context) { @@ -38,26 +39,36 @@ class _InfoViewState extends State<InfoView> { ), ListTile( title: Text(AppLocalizations.of(context)!.info3, style: cDefaultTextStyle), - subtitle: Text(websiteUrl, style: cDetailsTextStyle, overflow: TextOverflow.ellipsis), + subtitle: Text(websiteURL, style: cDetailsTextStyle, overflow: TextOverflow.ellipsis), trailing: IconButton( icon: Icon(Icons.north_east_rounded), onPressed: () { - _launchURL(Uri.parse(websiteUrl)); + _launchURL(Uri.parse(websiteURL)); }, ), ), ListTile( title: Text(AppLocalizations.of(context)!.info4, style: cDefaultTextStyle), - subtitle: Text(sourceCodeUrl, style: cDetailsTextStyle, overflow: TextOverflow.ellipsis), + subtitle: Text(sourceCodeURL, style: cDetailsTextStyle, overflow: TextOverflow.ellipsis), trailing: IconButton( icon: Icon(Icons.north_east_rounded), onPressed: () { - _launchURL(Uri.parse(sourceCodeUrl)); + _launchURL(Uri.parse(sourceCodeURL)); }, ), ), ListTile( title: Text(AppLocalizations.of(context)!.info5, style: cDefaultTextStyle), + subtitle: Text(privacyNoticeURL, style: cDetailsTextStyle, overflow: TextOverflow.ellipsis), + trailing: IconButton( + icon: Icon(Icons.north_east_rounded), + onPressed: () { + _launchURL(Uri.parse(privacyNoticeURL)); + }, + ), + ), + ListTile( + title: Text(AppLocalizations.of(context)!.info6, style: cDefaultTextStyle), trailing: IconButton( icon: Icon(Icons.launch_rounded), onPressed: () { @@ -65,6 +76,15 @@ class _InfoViewState extends State<InfoView> { }, ), ), +/* ListTile( + title: Text(AppLocalizations.of(context)!.info7, style: cDefaultTextStyle), + trailing: IconButton( + icon: Icon(Icons.launch_rounded), + onPressed: () { + Navigator.push(context, SlideFromRightRoute(child: ChangelogView())); + }, + ), + ), */ ], ), ); @@ -81,9 +101,9 @@ class _InfoViewState extends State<InfoView> { _launchURL(Uri url) async { if (await canLaunchUrl(url)) { - await launchUrl(url); + await launchUrl(url, mode: LaunchMode.externalApplication); } else { - throw 'Could not launch $url'; + print('Could not launch $url'); } } } |