all TextEditingController and Textfields till inkl. Dauer
This commit is contained in:
@@ -102,5 +102,7 @@
|
|||||||
"loading": "Lädt",
|
"loading": "Lädt",
|
||||||
"test": "Test",
|
"test": "Test",
|
||||||
"notest": "Kein Test",
|
"notest": "Kein Test",
|
||||||
"dateandtime": "Datum und Zeit"
|
"dateandtime": "Datum und Zeit",
|
||||||
|
"teilnehmer": "Teilnehmer",
|
||||||
|
"dauer": "Dauer"
|
||||||
}
|
}
|
||||||
@@ -502,8 +502,17 @@
|
|||||||
"dateandtime": "Date and Time",
|
"dateandtime": "Date and Time",
|
||||||
"@dateandtime": {
|
"@dateandtime": {
|
||||||
"description": "date and time step header"
|
"description": "date and time step header"
|
||||||
|
},
|
||||||
|
|
||||||
|
"teilnehmer": "Participants",
|
||||||
|
"@teilnehmer": {
|
||||||
|
"description": "teilnehmer text field"
|
||||||
|
},
|
||||||
|
|
||||||
|
"dauer": "Duration",
|
||||||
|
"@dauer": {
|
||||||
|
"description": "Duration text field"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -4,29 +4,41 @@ import 'package:fforte/screens/sharedWidgets/var_text_field.dart';
|
|||||||
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';
|
||||||
|
|
||||||
|
|
||||||
class ExcursionMain extends StatefulWidget {
|
class ExcursionMain extends StatefulWidget {
|
||||||
const ExcursionMain({super.key});
|
const ExcursionMain({super.key});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<ExcursionMain> createState() => _ExcursionMainState();
|
State<ExcursionMain> createState() => _ExcursionMainState();
|
||||||
}
|
}
|
||||||
class _ExcursionMainState extends State<ExcursionMain> {
|
|
||||||
|
|
||||||
|
class _ExcursionMainState extends State<ExcursionMain> {
|
||||||
// erste überlegung: map mit textcontrollern und map mit rest. maybe später schauen, dass alles in die eine map und mit instanceoff (in dart version) checken
|
// erste überlegung: map mit textcontrollern und map mit rest. maybe später schauen, dass alles in die eine map und mit instanceoff (in dart version) checken
|
||||||
|
|
||||||
TextEditingController rudel = TextEditingController();
|
String datum = '';
|
||||||
|
// dauer: nachfragen wie gespeichert werden soll und demnach felt machen. Vorerst eingaches Textfeld
|
||||||
|
// TODO:
|
||||||
|
// - Hund dabei u mit leine u fragen was dieses nein textfeld soll
|
||||||
|
// - Input vorgabe fuer dauer feld
|
||||||
|
|
||||||
Map<String, TextEditingController> getTextFields() {
|
Map<String, TextEditingController> getTextFields() {
|
||||||
Map<String, TextEditingController> rmap = {
|
Map<String, TextEditingController> rmap = {
|
||||||
"Rudel": rudel,
|
"Rudel": TextEditingController(),
|
||||||
|
"Teilnehm": TextEditingController(),
|
||||||
|
"Jahr": TextEditingController(),
|
||||||
|
"Dauer_Stungen": TextEditingController(),
|
||||||
|
"BLand": TextEditingController(),
|
||||||
|
"Lkr": TextEditingController(),
|
||||||
|
"BeiOrt": TextEditingController(),
|
||||||
|
"BimaNr": TextEditingController(),
|
||||||
|
"BimaName": TextEditingController(),
|
||||||
|
"BimaNutzer": TextEditingController(),
|
||||||
|
"BimAGV": TextEditingController(),
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return rmap;
|
return rmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
List<Step> getSteps() => [
|
List<Step> getSteps() => [
|
||||||
@@ -34,20 +46,29 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
title: Text(AppLocalizations.of(context)!.dateandtime),
|
title: Text(AppLocalizations.of(context)!.dateandtime),
|
||||||
content: Column(
|
content: Column(
|
||||||
children: [
|
children: [
|
||||||
Datum(initDatum: DateTime.now(),
|
Datum(initDatum: DateTime.now(), onDateChanged: (date) {}),
|
||||||
onDateChanged: (date) {
|
const SizedBox(
|
||||||
|
height: 10,
|
||||||
}),
|
),
|
||||||
|
VarTextField(
|
||||||
|
textController: getTextFields()["Rudel"]!,
|
||||||
|
localization: AppLocalizations.of(context)!.rudel,
|
||||||
|
dbName: "Rudel",
|
||||||
|
required: false),
|
||||||
const SizedBox(height: 10,),
|
const SizedBox(height: 10,),
|
||||||
VarTextField(textController: getTextFields()["Rudel"]!, localization: AppLocalizations.of(context)!.rudel, dbName: "Rudel", required: true)
|
VarTextField(
|
||||||
|
textController: getTextFields()["Teilnehm"]!,
|
||||||
|
localization: AppLocalizations.of(context)!.teilnehmer,
|
||||||
|
dbName: "Teilnehm",
|
||||||
|
required: false,
|
||||||
|
),
|
||||||
|
const SizedBox(height: 10,),
|
||||||
|
VarTextField(textController: getTextFields()["Dauer"]!, localization: AppLocalizations.of(context)!.dauer, dbName: "Dauer", required: false)
|
||||||
],
|
],
|
||||||
)),
|
)),
|
||||||
const Step(title: Text("step2"), content: Text("data"))
|
const Step(title: Text("step2"), content: Text("data"))
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int currentStep = 0;
|
int currentStep = 0;
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
|
|||||||
Reference in New Issue
Block a user