From 3d2a9bcfff99db4867bfa5403f2ccd11ed928973 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Mon, 4 Aug 2025 22:26:02 +0200 Subject: [PATCH] Updated about view --- lib/l10n/arb/app_de.arb | 1 + lib/l10n/arb/app_en.arb | 2 ++ lib/presentation/views/about_view.dart | 43 ++++++++++++++++++++------ pubspec.yaml | 2 +- 4 files changed, 38 insertions(+), 10 deletions(-) diff --git a/lib/l10n/arb/app_de.arb b/lib/l10n/arb/app_de.arb index 56525a8..5a0bfa0 100644 --- a/lib/l10n/arb/app_de.arb +++ b/lib/l10n/arb/app_de.arb @@ -20,6 +20,7 @@ "about": "Über", "licenses": "Lizenzen", "license_details": "Lizenzdetails", + "imprint": "Impressum", "empty_text_1": "Ganz schön leer hier...", "empty_text_2": "Füge über den Button oben rechts eine neue Runde hinzu", diff --git a/lib/l10n/arb/app_en.arb b/lib/l10n/arb/app_en.arb index d37fcb9..0715ee2 100644 --- a/lib/l10n/arb/app_en.arb +++ b/lib/l10n/arb/app_en.arb @@ -20,6 +20,8 @@ "about": "About", "licenses": "Licenses", "license_details": "License Details", + "imprint": "Imprint", + "empty_text_1": "Pretty empty here...", "empty_text_2": "Create a new game using the button in the top right.", diff --git a/lib/presentation/views/about_view.dart b/lib/presentation/views/about_view.dart index 94b6ad0..03ac569 100644 --- a/lib/presentation/views/about_view.dart +++ b/lib/presentation/views/about_view.dart @@ -43,20 +43,45 @@ class AboutView extends StatelessWidget { height: 200, child: Image.asset('assets/cabo_counter-logo_rounded.png'), )), - Padding( - padding: const EdgeInsets.symmetric(horizontal: 30), - child: Text( - AppLocalizations.of(context).about_text, - textAlign: TextAlign.center, - softWrap: true, - )), - const SizedBox( - height: 30, + Visibility( + visible: Constants.appDevPhase == 'Beta', + child: Column( + children: [ + Padding( + padding: const EdgeInsets.symmetric(horizontal: 30), + child: Text( + AppLocalizations.of(context).about_text, + textAlign: TextAlign.center, + softWrap: true, + )), + const SizedBox( + height: 10, + ), + ], + ), ), CupertinoButton( + sizeStyle: CupertinoButtonSize.medium, + padding: EdgeInsets.zero, + child: Text(AppLocalizations.of(context).privacy_policy), + onPressed: () => + launchUrl(Uri.parse(Constants.kPrivacyPolicyLink)), + ), + CupertinoButton( + sizeStyle: CupertinoButtonSize.medium, + padding: EdgeInsets.zero, + child: Text(AppLocalizations.of(context).imprint), + onPressed: () => launchUrl(Uri.parse(Constants.kImprintLink)), + ), + CupertinoButton( + sizeStyle: CupertinoButtonSize.medium, + padding: EdgeInsets.zero, child: Text(AppLocalizations.of(context).licenses), onPressed: () => Navigator.push(context, CupertinoPageRoute(builder: (_) => const LicenseView()))), + const SizedBox( + height: 10, + ), const Text( '\u00A9 Felix Kirchner', style: TextStyle(fontSize: 16), diff --git a/pubspec.yaml b/pubspec.yaml index 3f9f742..6bdb330 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: cabo_counter description: "Mobile app for the card game Cabo" publish_to: 'none' -version: 0.5.6+648 +version: 0.5.6+656 environment: sdk: ^3.5.4