From 83a8a3aaefba3154b94755bc2d394828c8200743 Mon Sep 17 00:00:00 2001 From: Marcus Kida Date: Sun, 1 Feb 2026 22:45:35 +0100 Subject: [PATCH] Add imopressum --- lib/views/auth_view.dart | 2 +- lib/views/more_view.dart | 49 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 49 insertions(+), 2 deletions(-) diff --git a/lib/views/auth_view.dart b/lib/views/auth_view.dart index d3c728d..e023d3c 100644 --- a/lib/views/auth_view.dart +++ b/lib/views/auth_view.dart @@ -77,7 +77,7 @@ class _AuthViewState extends State { ), const SizedBox(height: 24), Text( - 'Sign In', + 'BrandManager', style: Theme.of(context).textTheme.headlineLarge?.copyWith( fontWeight: FontWeight.bold, ), diff --git a/lib/views/more_view.dart b/lib/views/more_view.dart index e0e2c61..57ed681 100644 --- a/lib/views/more_view.dart +++ b/lib/views/more_view.dart @@ -1,5 +1,6 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; +import 'package:url_launcher/url_launcher.dart'; import '../services/authentication_manager.dart'; class MoreView extends StatelessWidget { @@ -17,6 +18,8 @@ class MoreView extends StatelessWidget { children: [ _buildAppInfoSection(context), const Divider(height: 1), + _buildLegalSection(context), + const Divider(height: 1), _buildLogoutSection(context, authManager), ], ), @@ -44,7 +47,51 @@ class MoreView extends StatelessWidget { const _InfoRow( icon: Icons.copyright, label: 'Copyright', - value: '2026', + value: 'Bearologics GmbH', + ), + ], + ), + ); + } + + Widget _buildLegalSection(BuildContext context) { + return Container( + padding: const EdgeInsets.all(16), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'Legal', + style: Theme.of(context).textTheme.titleLarge?.copyWith( + fontWeight: FontWeight.bold, + ), + ), + const SizedBox(height: 16), + ListTile( + contentPadding: EdgeInsets.zero, + leading: Icon( + Icons.gavel, + color: Theme.of(context).colorScheme.primary, + ), + title: const Text('Impressum'), + trailing: const Icon(Icons.open_in_new, size: 18), + onTap: () { + final url = Uri.parse('https://bearologics.com/impressum'); + launchUrl(url, mode: LaunchMode.externalApplication); + }, + ), + ListTile( + contentPadding: EdgeInsets.zero, + leading: Icon( + Icons.privacy_tip_outlined, + color: Theme.of(context).colorScheme.primary, + ), + title: const Text('Privacy Policy'), + trailing: const Icon(Icons.open_in_new, size: 18), + onTap: () { + final url = Uri.parse('https://bearologics.com/privacy'); + launchUrl(url, mode: LaunchMode.externalApplication); + }, ), ], ),