Feature
ein paar feature aber datenbank macht probleme wenn man aufträge speichern möchge
This commit is contained in:
59
screens/legal/legal_document_screen.dart
Normal file
59
screens/legal/legal_document_screen.dart
Normal 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,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user