From 3b56ac8554ad84de529efd6dcc2a4923cc377415 Mon Sep 17 00:00:00 2001 From: mytja Date: Fri, 17 Nov 2023 23:57:21 +0100 Subject: [PATCH] link to tos from login --- tarok/lib/internationalization/languages.dart | 2 ++ tarok/lib/login/login.dart | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/tarok/lib/internationalization/languages.dart b/tarok/lib/internationalization/languages.dart index e6b7a3a..a3b2168 100644 --- a/tarok/lib/internationalization/languages.dart +++ b/tarok/lib/internationalization/languages.dart @@ -257,6 +257,7 @@ class Messages extends Translations { "password_reset_procedure": "This procedure will sign you out of all your devices", "password_reset_change": "Change your password", + "tos": "Terms of service", }, 'sl_SI': { "login": "Prijava", @@ -512,6 +513,7 @@ class Messages extends Translations { "Vaše geslo se ni spremenilo. Prosimo, ponovite postopek, ali kontaktirajte razvijalce, da se razčisti o možnih težavah.", "password_reset_procedure": "Postopek vas bo izpisal iz vseh naprav", "password_reset_change": "Spremenite svoje geslo", + "tos": "Pogoji uporabe", } }; } diff --git a/tarok/lib/login/login.dart b/tarok/lib/login/login.dart index 25b16a2..522f65e 100644 --- a/tarok/lib/login/login.dart +++ b/tarok/lib/login/login.dart @@ -205,6 +205,12 @@ class Login extends StatelessWidget { ), icon: const FaIcon(FontAwesomeIcons.googlePlay), ), + ElevatedButton( + onPressed: () async { + await launchUrl(Uri.parse("https://palcka.si/tos.html")); + }, + child: Text("tos".tr, style: const TextStyle(fontSize: 20)), + ), ElevatedButton.icon( onPressed: () async { await launchUrl(