Files
Handwerks_app/screens/legal/legal_document_screen.dart
JUSN 9ddce354c0 Feature
ein paar feature aber datenbank macht probleme wenn man aufträge speichern möchge
2026-04-05 12:47:57 +02:00

60 lines
1.5 KiB
Dart
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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,
),
),
],
),
);
}
}