ein paar feature aber datenbank macht probleme wenn man aufträge speichern möchge
This commit is contained in:
2026-04-05 12:47:57 +02:00
parent e1d4bb7edf
commit 9ddce354c0
32 changed files with 3931 additions and 612 deletions

View File

@@ -0,0 +1,59 @@
import 'package:flutter/material.dart';
import '../../theme/app_theme.dart';
class LegalDocumentScreen extends StatelessWidget {
const LegalDocumentScreen({
super.key,
required this.title,
required this.body,
this.showDisclaimer = false,
});
final String title;
final String body;
final bool showDisclaimer;
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppTheme.background,
appBar: AppBar(
title: Text(title),
),
body: ListView(
padding: const EdgeInsets.all(20),
children: [
if (showDisclaimer) ...[
Container(
padding: const EdgeInsets.all(14),
decoration: BoxDecoration(
color: AppTheme.statusGeplant.withValues(alpha: 0.15),
borderRadius: BorderRadius.circular(12),
border: Border.all(
color: AppTheme.statusGeplant.withValues(alpha: 0.4),
),
),
child: const Text(
'Hinweis: Unverbindliche Vorlage bitte rechtlich prüfen lassen.',
style: TextStyle(
color: Color(0xFFFFCC80),
height: 1.35,
),
),
),
const SizedBox(height: 20),
],
Text(
body.trim(),
style: TextStyle(
color: Colors.grey.shade300,
height: 1.45,
fontSize: 14,
),
),
],
),
);
}
}