60 lines
1.5 KiB
Dart
60 lines
1.5 KiB
Dart
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,
|
||
),
|
||
),
|
||
],
|
||
),
|
||
);
|
||
}
|
||
}
|