let AI comment everything because well... yeah...
This commit is contained in:
@@ -1,14 +1,23 @@
|
||||
// * Widget for selecting BImA (Bundesanstalt für Immobilienaufgaben) property user type
|
||||
// * Features:
|
||||
// * - Radio button selection for different user categories
|
||||
// * - Localized labels for each user type
|
||||
// * Available user types:
|
||||
// * - Bundeswehr (German Armed Forces)
|
||||
// * - Gaststreitkräfte (Foreign Armed Forces)
|
||||
// * - NNE Bund (Federal non-civil use)
|
||||
// * - Geschäftsliegenschaft/AGV (Commercial property)
|
||||
// * - kein (none)
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:fforte/l10n/app_localizations.dart';
|
||||
|
||||
// Bundeswehr
|
||||
// Gastreitkraefte
|
||||
// NNE Bund
|
||||
// Geschaeftsliegenschaft/AGV
|
||||
// kein
|
||||
|
||||
/// Widget for selecting the type of BImA property user
|
||||
/// Used to categorize the property where monitoring takes place
|
||||
class BimaNutzer extends StatefulWidget {
|
||||
/// Callback function when user type selection changes
|
||||
final Function(String) onBimaNutzerChanged;
|
||||
/// Initial user type selection ('Bundeswehr' by default)
|
||||
final String initialStatus;
|
||||
|
||||
const BimaNutzer(
|
||||
@@ -18,7 +27,9 @@ class BimaNutzer extends StatefulWidget {
|
||||
State<BimaNutzer> createState() => _StatusState();
|
||||
}
|
||||
|
||||
/// State class for the BImA user selection widget
|
||||
class _StatusState extends State<BimaNutzer> {
|
||||
/// Currently selected user type
|
||||
String? _selectedStatus;
|
||||
|
||||
@override
|
||||
@@ -31,6 +42,7 @@ class _StatusState extends State<BimaNutzer> {
|
||||
Widget build(BuildContext context) {
|
||||
return Column(
|
||||
children: [
|
||||
// German Armed Forces option
|
||||
ListTile(
|
||||
visualDensity: const VisualDensity(vertical: -4),
|
||||
title: Text(AppLocalizations.of(context)!.bundeswehr),
|
||||
@@ -45,6 +57,7 @@ class _StatusState extends State<BimaNutzer> {
|
||||
},
|
||||
),
|
||||
),
|
||||
// Foreign Armed Forces option
|
||||
ListTile(
|
||||
visualDensity: const VisualDensity(vertical: -4),
|
||||
title: Text(AppLocalizations.of(context)!.gaststreitkraefte),
|
||||
@@ -59,6 +72,7 @@ class _StatusState extends State<BimaNutzer> {
|
||||
},
|
||||
),
|
||||
),
|
||||
// Federal non-civil use option
|
||||
ListTile(
|
||||
visualDensity: const VisualDensity(vertical: -4),
|
||||
title: Text(AppLocalizations.of(context)!.nneBund),
|
||||
@@ -73,6 +87,7 @@ class _StatusState extends State<BimaNutzer> {
|
||||
},
|
||||
),
|
||||
),
|
||||
// Commercial property option
|
||||
ListTile(
|
||||
visualDensity: const VisualDensity(vertical: -4),
|
||||
title: Text(AppLocalizations.of(context)!.geschaeftsliegenschaftAGV),
|
||||
@@ -87,6 +102,7 @@ class _StatusState extends State<BimaNutzer> {
|
||||
},
|
||||
),
|
||||
),
|
||||
// No user option
|
||||
ListTile(
|
||||
visualDensity: const VisualDensity(vertical: -4),
|
||||
title: Text(AppLocalizations.of(context)!.kein),
|
||||
|
||||
Reference in New Issue
Block a user