Add imopressum
This commit is contained in:
@@ -77,7 +77,7 @@ class _AuthViewState extends State<AuthView> {
|
||||
),
|
||||
const SizedBox(height: 24),
|
||||
Text(
|
||||
'Sign In',
|
||||
'BrandManager',
|
||||
style: Theme.of(context).textTheme.headlineLarge?.copyWith(
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user