commented and aligned text for cog
This commit is contained in:
@@ -95,6 +95,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
title: Text(AppLocalizations.of(context)!.dateandtime),
|
title: Text(AppLocalizations.of(context)!.dateandtime),
|
||||||
content: Column(
|
content: Column(
|
||||||
children: [
|
children: [
|
||||||
|
// ---------- Date
|
||||||
Datum(
|
Datum(
|
||||||
initDatum: DateTime.now(),
|
initDatum: DateTime.now(),
|
||||||
onDateChanged: (date) {
|
onDateChanged: (date) {
|
||||||
@@ -105,6 +106,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
|
// ---------- Pack
|
||||||
VarTextField(
|
VarTextField(
|
||||||
textController: getTextFields()["Rudel"]!,
|
textController: getTextFields()["Rudel"]!,
|
||||||
localization: AppLocalizations.of(context)!.rudel,
|
localization: AppLocalizations.of(context)!.rudel,
|
||||||
@@ -115,6 +117,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
|
// ---------- Participants
|
||||||
VarTextField(
|
VarTextField(
|
||||||
textController: getTextFields()["Teilnehm"]!,
|
textController: getTextFields()["Teilnehm"]!,
|
||||||
localization: AppLocalizations.of(context)!.teilnehmer,
|
localization: AppLocalizations.of(context)!.teilnehmer,
|
||||||
@@ -125,6 +128,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
|
// ---------- Duration
|
||||||
VarTextField(
|
VarTextField(
|
||||||
textController: getTextFields()["Dauer"]!,
|
textController: getTextFields()["Dauer"]!,
|
||||||
localization: AppLocalizations.of(context)!.dauer,
|
localization: AppLocalizations.of(context)!.dauer,
|
||||||
@@ -135,16 +139,15 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
|
// ---------- Dog(leash)
|
||||||
HundULeine(onMHundChanged: (mHund, mLeine) {
|
HundULeine(onMHundChanged: (mHund, mLeine) {
|
||||||
getTextFields()["MHund"]!.text = mHund;
|
getTextFields()["MHund"]!.text = mHund;
|
||||||
getTextFields()["MLeine"]!.text = mLeine;
|
getTextFields()["MLeine"]!.text = mLeine;
|
||||||
|
|
||||||
// print(mHund);
|
|
||||||
// print(mLeine);
|
|
||||||
}),
|
}),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
|
// ---------- State
|
||||||
VarTextField(
|
VarTextField(
|
||||||
textController: getTextFields()["BLand"]!,
|
textController: getTextFields()["BLand"]!,
|
||||||
localization: AppLocalizations.of(context)!.bland,
|
localization: AppLocalizations.of(context)!.bland,
|
||||||
@@ -155,6 +158,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
|
// ---------- Country
|
||||||
VarTextField(
|
VarTextField(
|
||||||
textController: getTextFields()["Lkr"]!,
|
textController: getTextFields()["Lkr"]!,
|
||||||
localization: AppLocalizations.of(context)!.lkr,
|
localization: AppLocalizations.of(context)!.lkr,
|
||||||
@@ -165,6 +169,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
|
// ---------- By State
|
||||||
VarTextField(
|
VarTextField(
|
||||||
textController: getTextFields()["BeiOrt"]!,
|
textController: getTextFields()["BeiOrt"]!,
|
||||||
localization: AppLocalizations.of(context)!.beiort,
|
localization: AppLocalizations.of(context)!.beiort,
|
||||||
@@ -175,6 +180,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
|
// ---------- Bima number
|
||||||
const Divider(),
|
const Divider(),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
@@ -189,6 +195,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
|
// ---------- Bima name
|
||||||
VarTextField(
|
VarTextField(
|
||||||
textController: getTextFields()["BimaName"]!,
|
textController: getTextFields()["BimaName"]!,
|
||||||
localization: AppLocalizations.of(context)!.bimaName,
|
localization: AppLocalizations.of(context)!.bimaName,
|
||||||
@@ -199,6 +206,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
|
// ---------- Bima user
|
||||||
BimaNutzer(onBimaNutzerChanged: (value) {
|
BimaNutzer(onBimaNutzerChanged: (value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
getTextFields()["BimaNutzer"]!.text = value;
|
getTextFields()["BimaNutzer"]!.text = value;
|
||||||
@@ -207,6 +215,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
|
// ---------- Bima AGV
|
||||||
VarTextField(
|
VarTextField(
|
||||||
textController: getTextFields()["BimaAGV"]!,
|
textController: getTextFields()["BimaAGV"]!,
|
||||||
localization: AppLocalizations.of(context)!.bimaAGV,
|
localization: AppLocalizations.of(context)!.bimaAGV,
|
||||||
@@ -220,6 +229,8 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
title: const Text("step2"),
|
title: const Text("step2"),
|
||||||
content: Column(
|
content: Column(
|
||||||
children: [
|
children: [
|
||||||
|
// ---------- Weather
|
||||||
|
// TODO CHANGE TO LOCALIZATION
|
||||||
VarTextField(
|
VarTextField(
|
||||||
textController: getTextFields()["Wetter"]!,
|
textController: getTextFields()["Wetter"]!,
|
||||||
localization: "Wetter",
|
localization: "Wetter",
|
||||||
@@ -228,6 +239,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
dbDesignation: DatabasesEnum.excursion,
|
dbDesignation: DatabasesEnum.excursion,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
|
// ---------- Temperature
|
||||||
VarTextField(
|
VarTextField(
|
||||||
textController: getTextFields()["Temperat"]!,
|
textController: getTextFields()["Temperat"]!,
|
||||||
localization: "Temperatur",
|
localization: "Temperatur",
|
||||||
@@ -236,8 +248,10 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
dbDesignation: DatabasesEnum.excursion,
|
dbDesignation: DatabasesEnum.excursion,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
|
// ---------- Last precipitation
|
||||||
LetzterNiederschlag(controller: getTextFields()["RegenVor"]!),
|
LetzterNiederschlag(controller: getTextFields()["RegenVor"]!),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
|
// ---------- Track conditions
|
||||||
StreckeUSpurbedingungen(
|
StreckeUSpurbedingungen(
|
||||||
kmAutoController: getTextFields()["KmAuto"]!,
|
kmAutoController: getTextFields()["KmAuto"]!,
|
||||||
kmFussController: getTextFields()["KmFuss"]!,
|
kmFussController: getTextFields()["KmFuss"]!,
|
||||||
@@ -250,6 +264,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
const Divider(),
|
const Divider(),
|
||||||
|
// ---------- Track found
|
||||||
SpurGefunden(
|
SpurGefunden(
|
||||||
spurFund: getTextFields()["SpurFund"]!,
|
spurFund: getTextFields()["SpurFund"]!,
|
||||||
spurLang: getTextFields()["SpurLang"]!,
|
spurLang: getTextFields()["SpurLang"]!,
|
||||||
@@ -261,6 +276,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
|
// ---------- Counts
|
||||||
Anzahlen(
|
Anzahlen(
|
||||||
losungAnz: getTextFields()["LosungAnz"]!,
|
losungAnz: getTextFields()["LosungAnz"]!,
|
||||||
losungGes: getTextFields()["LosungGes"]!,
|
losungGes: getTextFields()["LosungGes"]!,
|
||||||
@@ -276,25 +292,30 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
const Divider(),
|
const Divider(),
|
||||||
|
// ---------- Clues
|
||||||
|
// TODO Add title
|
||||||
Hinweise(
|
Hinweise(
|
||||||
hinweise: getTextFields()["Hinweise"]!,
|
hinweise: getTextFields()["Hinweise"]!,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
Step(
|
Step(
|
||||||
title: const Text("step3"),
|
title: const Text("step3"),
|
||||||
content: Column(
|
content: Column(
|
||||||
children: [
|
children: [
|
||||||
VarTextField(textController: getTextFields()["Bemerk"]!,
|
// ---------- Remarks
|
||||||
|
VarTextField(
|
||||||
|
textController: getTextFields()["Bemerk"]!,
|
||||||
localization: "Bemerkungen",
|
localization: "Bemerkungen",
|
||||||
dbName: "Bemerk",
|
dbName: "Bemerk",
|
||||||
required: false,
|
required: false,
|
||||||
dbDesignation: DatabasesEnum.excursion,
|
dbDesignation: DatabasesEnum.excursion,
|
||||||
),
|
),
|
||||||
|
const SizedBox(
|
||||||
const SizedBox(height: 20,),
|
height: 20,
|
||||||
|
),
|
||||||
|
// ---------- Internal communication
|
||||||
VarTextField(
|
VarTextField(
|
||||||
textController: getTextFields()["IntKomm"]!,
|
textController: getTextFields()["IntKomm"]!,
|
||||||
localization: "Interne Kommunikation",
|
localization: "Interne Kommunikation",
|
||||||
@@ -307,6 +328,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
|||||||
),
|
),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// Begin of widget tree
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text(AppLocalizations.of(context)!.excursion),
|
title: Text(AppLocalizations.of(context)!.excursion),
|
||||||
|
|||||||
@@ -39,7 +39,9 @@ class HundULeineState extends State<HundULeine> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
Text(AppLocalizations.of(context)!.mHund),
|
Align(
|
||||||
|
alignment: Alignment.bottomLeft,
|
||||||
|
child: Text(AppLocalizations.of(context)!.mHund)),
|
||||||
ListTile(
|
ListTile(
|
||||||
visualDensity: const VisualDensity(vertical: -4),
|
visualDensity: const VisualDensity(vertical: -4),
|
||||||
title: Text(AppLocalizations.of(context)!.ja),
|
title: Text(AppLocalizations.of(context)!.ja),
|
||||||
|
|||||||
Reference in New Issue
Block a user