commented and aligned text for cog

This commit is contained in:
Nico
2025-05-05 20:52:41 +02:00
parent 55b3c7df14
commit 522d9885f6
2 changed files with 323 additions and 299 deletions

View File

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

View File

@@ -39,7 +39,9 @@ class HundULeineState extends State<HundULeine> {
Widget build(BuildContext context) {
return Column(
children: [
Text(AppLocalizations.of(context)!.mHund),
Align(
alignment: Alignment.bottomLeft,
child: Text(AppLocalizations.of(context)!.mHund)),
ListTile(
visualDensity: const VisualDensity(vertical: -4),
title: Text(AppLocalizations.of(context)!.ja),