aboutsummaryrefslogtreecommitdiff
path: root/lib/views/info_view.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/views/info_view.dart')
-rw-r--r--lib/views/info_view.dart36
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');
}
}
}