added forgotten localization and removed vim savefiles

This commit is contained in:
Nico
2025-05-05 22:20:17 +02:00
parent b2fa4375b5
commit 2b89c0a5b8
8 changed files with 36 additions and 167 deletions

View File

@@ -151,6 +151,7 @@
"sichtung": "Sichtung", "sichtung": "Sichtung",
"heulen": "Heulen", "heulen": "Heulen",
"sonstiges": "Sonstiges", "sonstiges": "Sonstiges",
"hinweise": "Hinweise" "hinweise": "Hinweise",
"zurueckgelegteStrecke": "Zurückgelegte Strecke"
} }

View File

@@ -642,6 +642,8 @@
"sonstiges": "Sonstiges", "sonstiges": "Sonstiges",
"hinweise": "clues" "hinweise": "clues",
"zurueckgelegteStrecke": "Distance traveled"
} }

View File

@@ -1,107 +0,0 @@
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
// Bundeswehr
// Gastreitkraefte
// NNE Bund
// Geschaeftsliegenschaft/AGV
// kein
class Status extends StatefulWidget {
final Function(String) onStatusChanged;
final String initialStatus;
const Status(
{super.key, required this.onStatusChanged, this.initialStatus = 'Aktiv'});
@override
State<Status> createState() => _StatusState();
}
class _StatusState extends State<Status> {
String? _selectedStatus;
@override
void initState() {
super.initState();
_selectedStatus = widget.initialStatus;
}
@override
Widget build(BuildContext context) {
return Column(
children: [
ListTile(
visualDensity: const VisualDensity(vertical: -4),
title: Text(AppLocalizations.of(context)!.),
leading: Radio<String>(
value: 'Bundeswehr',
groupValue: _selectedStatus,
onChanged: (value) {
setState(() {
_selectedStatus = value;
widget.onStatusChanged(value!);
});
},
),
),
ListTile(
visualDensity: const VisualDensity(vertical: -4),
title: Text(AppLocalizations.of(context)!.gesamtstreitkraefte),
leading: Radio<String>(
value: 'Gaststreitkraefte',
groupValue: _selectedStatus,
onChanged: (value) {
setState(() {
_selectedStatus = value;
widget.onStatusChanged(value!);
});
},
),
),
ListTile(
visualDensity: const VisualDensity(vertical: -4),
title: Text(AppLocalizations.of(context)!.),
leading: Radio<String>(
value: 'NNE-Bund',
groupValue: _selectedStatus,
onChanged: (value) {
setState(() {
_selectedStatus = value;
widget.onStatusChanged(value!);
});
},
),
),
ListTile(
visualDensity: const VisualDensity(vertical: -4),
title: Text(AppLocalizations.of(context)!.),
leading: Radio<String>(
value: 'Geschaeftsliegenschaft/AGV',
groupValue: _selectedStatus,
onChanged: (value) {
setState(() {
_selectedStatus = value;
widget.onStatusChanged(value!);
});
},
),
),
ListTile(
visualDensity: const VisualDensity(vertical: -4),
title: Text(AppLocalizations.of(context)!.),
leading: Radio<String>(
value: 'kein',
groupValue: _selectedStatus,
onChanged: (value) {
setState(() {
_selectedStatus = value;
widget.onStatusChanged(value!);
});
},
),
),
],
);
}
}

View File

@@ -1,44 +0,0 @@
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
class LetzterNiederschlag extends StatefulWidget {
final TextEditingController controller;
const LetzterNiederschlag({super.key, required this.controller});
@override
LetzterNiederschlagState createState() => LetzterNiederschlagState();
}
class LetzterNiederschlagState extends State<LetzterNiederschlag> {
@override
Widget build(BuildContext context) {
return DropdownMenu<String>(
controller: widget.controller,
label: Text(AppLocalizations.of(context)!.letzterNiederschlag),
dropdownMenuEntries: [
DropdownMenuEntry(
value: "aktuell",
label: AppLocalizations.of(context)!.aktuell),
DropdownMenuEntry(
value: "selberMorgen",
label: AppLocalizations.of(context)!.selberMorgen),
DropdownMenuEntry(
value: "nacht",
label: AppLocalizations.of(context)!.nacht),
DropdownMenuEntry(
value: "vortag",
label: AppLocalizations.of(context)!.vortag),
DropdownMenuEntry(
value: "vor23Tagen",
label: AppLocalizations.of(context)!.vor23Tagen),
DropdownMenuEntry(
value: "vor46Tagen",
label: AppLocalizations.of(context)!.vor46Tagen),
DropdownMenuEntry(
value: "vor1Woche",
label: AppLocalizations.of(context)!.vor1Woche)
],
);
}
}

View File

@@ -1,7 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart';
// TODO FINISH!! // TODO FINISH!!
class StreckeUSpurbedingungen extends StatefulWidget { class StreckeUSpurbedingungen extends StatefulWidget {
@@ -12,8 +11,8 @@ class StreckeUSpurbedingungen extends StatefulWidget {
final TextEditingController spMittelController; final TextEditingController spMittelController;
final TextEditingController spSchlechtController; final TextEditingController spSchlechtController;
const StreckeUSpurbedingungen({ const StreckeUSpurbedingungen(
required this.kmAutoController, {required this.kmAutoController,
required this.kmFussController, required this.kmFussController,
required this.kmRadController, required this.kmRadController,
required this.spGutController, required this.spGutController,
@@ -33,14 +32,17 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
Align( Align(
alignment: Alignment.bottomLeft, alignment: Alignment.bottomLeft,
child: Text( child: Text(
"Zurueckgelegte Strecke (km)", AppLocalizations.of(context)!.zurueckgelegteStrecke,
style: style: Theme.of(context).textTheme.titleMedium,
Theme.of(context).textTheme.titleMedium,
)), )),
Row( Row(
children: [ children: [
Expanded(child: Text(AppLocalizations.of(context)!.auto)), Expanded(child: Text(AppLocalizations.of(context)!.auto)),
Expanded(child: TextField(keyboardType: TextInputType.number, controller: widget.kmAutoController,)), Expanded(
child: TextField(
keyboardType: TextInputType.number,
controller: widget.kmAutoController,
)),
Expanded(child: Center(child: Text("="))), Expanded(child: Center(child: Text("="))),
Expanded(child: Center(child: Text(""))), Expanded(child: Center(child: Text(""))),
Expanded(child: Center(child: Text("%"))), Expanded(child: Center(child: Text("%"))),
@@ -49,7 +51,10 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
Row( Row(
children: [ children: [
Expanded(child: Text(AppLocalizations.of(context)!.zuFuss)), Expanded(child: Text(AppLocalizations.of(context)!.zuFuss)),
Expanded(child: TextField(keyboardType: TextInputType.number, controller: widget.kmFussController)), Expanded(
child: TextField(
keyboardType: TextInputType.number,
controller: widget.kmFussController)),
Expanded(child: Center(child: Text("="))), Expanded(child: Center(child: Text("="))),
Expanded(child: Center(child: Text(""))), Expanded(child: Center(child: Text(""))),
Expanded(child: Center(child: Text("%"))), Expanded(child: Center(child: Text("%"))),
@@ -58,7 +63,10 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
Row( Row(
children: [ children: [
Expanded(child: Text(AppLocalizations.of(context)!.fahrrad)), Expanded(child: Text(AppLocalizations.of(context)!.fahrrad)),
Expanded(child: TextField(keyboardType: TextInputType.number, controller: widget.kmRadController)), Expanded(
child: TextField(
keyboardType: TextInputType.number,
controller: widget.kmRadController)),
Expanded(child: Center(child: Text("="))), Expanded(child: Center(child: Text("="))),
Expanded(child: Center(child: Text(""))), Expanded(child: Center(child: Text(""))),
Expanded(child: Center(child: Text("%"))), Expanded(child: Center(child: Text("%"))),
@@ -89,14 +97,16 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
alignment: Alignment.bottomLeft, alignment: Alignment.bottomLeft,
child: Text( child: Text(
AppLocalizations.of(context)!.spurbedingungen, AppLocalizations.of(context)!.spurbedingungen,
style: style: Theme.of(context).textTheme.titleMedium,
Theme.of(context).textTheme.titleMedium,
), ),
), ),
Row( Row(
children: [ children: [
Expanded(child: Text(AppLocalizations.of(context)!.gut)), Expanded(child: Text(AppLocalizations.of(context)!.gut)),
Expanded(child: TextField(keyboardType: TextInputType.number, controller: widget.spGutController)), Expanded(
child: TextField(
keyboardType: TextInputType.number,
controller: widget.spGutController)),
Expanded(child: Center(child: Text("="))), Expanded(child: Center(child: Text("="))),
Expanded(child: Center(child: Text(""))), Expanded(child: Center(child: Text(""))),
Expanded(child: Center(child: Text("%"))), Expanded(child: Center(child: Text("%"))),
@@ -105,7 +115,10 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
Row( Row(
children: [ children: [
Expanded(child: Text(AppLocalizations.of(context)!.mittel)), Expanded(child: Text(AppLocalizations.of(context)!.mittel)),
Expanded(child: TextField(keyboardType: TextInputType.number, controller: widget.spMittelController)), Expanded(
child: TextField(
keyboardType: TextInputType.number,
controller: widget.spMittelController)),
Expanded(child: Center(child: Text("="))), Expanded(child: Center(child: Text("="))),
Expanded(child: Center(child: Text(""))), Expanded(child: Center(child: Text(""))),
Expanded(child: Center(child: Text("%"))), Expanded(child: Center(child: Text("%"))),
@@ -114,7 +127,11 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
Row( Row(
children: [ children: [
Expanded(child: Text(AppLocalizations.of(context)!.schlecht)), Expanded(child: Text(AppLocalizations.of(context)!.schlecht)),
Expanded(child: TextField(keyboardType: TextInputType.number, controller: widget.spSchlechtController,)), Expanded(
child: TextField(
keyboardType: TextInputType.number,
controller: widget.spSchlechtController,
)),
Expanded(child: Center(child: Text("="))), Expanded(child: Center(child: Text("="))),
Expanded(child: Center(child: Text(""))), Expanded(child: Center(child: Text(""))),
Expanded(child: Center(child: Text("%"))), Expanded(child: Center(child: Text("%"))),