emptied abbaudat

This commit is contained in:
Nico
2024-03-23 14:28:13 +01:00
parent b781f91d15
commit a7d832818f
3 changed files with 16 additions and 15 deletions

View File

@@ -1670,7 +1670,7 @@ class AbbauDat extends StatefulWidget {
}
class _AbbauDatState extends State<AbbauDat> {
DateTime? abbauDat = DateTime.now();
DateTime? abbauDat;
@override
Widget build(BuildContext context) {
@@ -1690,9 +1690,13 @@ class _AbbauDatState extends State<AbbauDat> {
const SizedBox(
width: 10,
),
Text(
'${abbauDat?.day}. ${abbauDat?.month}. ${abbauDat?.year}',
),
Builder(builder: (context) {
if (abbauDat != null) {
return Text('${abbauDat?.day}. ${abbauDat?.month}. ${abbauDat?.year}');
} else {
return Text(AppLocalizations.of(context)!.nichts);
}
}),
]),
],
);