fixed alignment in anzahlen, added and finished 3rd step created hinweise widget, removed domain, changed letzter_niederschlag.dart to Dropdown

time
This commit is contained in:
nico
2025-03-17 22:34:38 +01:00
parent 1791876eec
commit 5086c4f2cc
6 changed files with 171 additions and 88 deletions

View File

@@ -1,6 +1,7 @@
import 'package:animations/animations.dart';
import 'package:fforte/screens/Excursion/widgets/anzahlen.dart~';
import 'package:fforte/screens/Excursion/widgets/anzahlen.dart';
import 'package:fforte/screens/Excursion/widgets/bima_nutzer.dart';
import 'package:fforte/screens/Excursion/widgets/hinweise.dart';
import 'package:fforte/screens/Excursion/widgets/hund_u_leine.dart';
import 'package:fforte/screens/Excursion/widgets/letzter_niederschlag.dart';
import 'package:fforte/screens/Excursion/widgets/spur_gefunden.dart';
@@ -10,8 +11,6 @@ import 'package:fforte/screens/sharedWidgets/var_text_field.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'widgets/anzahlen.dart';
class ExcursionMain extends StatefulWidget {
const ExcursionMain({super.key});
@@ -90,8 +89,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
@override
Widget build(BuildContext context) {
List<Step> getSteps() =>
[
List<Step> getSteps() => [
Step(
title: Text(AppLocalizations.of(context)!.dateandtime),
content: Column(
@@ -200,50 +198,82 @@ class _ExcursionMainState extends State<ExcursionMain> {
required: false)
],
)),
Step(
title: const Text("step2"),
content: Column(
children: [
VarTextField(
textController: getTextFields()["Wetter"]!,
localization: "Wetter",
dbName: "Wetter",
required: false),
const SizedBox(height: 10),
VarTextField(
textController: getTextFields()["Temperat"]!,
localization: "Temperatur",
dbName: "Temperat",
required: false),
const SizedBox(height: 10),
LetzterNiederschlag(controller: getTextFields()["RegenVor"]!),
const SizedBox(height: 20),
StreckeUSpurbedingungen(
kmAutoController: getTextFields()["KmAuto"]!,
kmFussController: getTextFields()["KmFuss"]!,
kmRadController: getTextFields()["KmRad"]!,
spGutController: getTextFields()["SpGut"]!,
spMittelController: getTextFields()["SpMittel"]!,
spSchlechtController: getTextFields()["SpSchlecht"]!,
),
const SizedBox(
height: 20,
),
const Divider(),
SpurGefunden(
spurFund: getTextFields()["SpurFund"]!,
spurLang: getTextFields()["SpurLang"]!,
spurTiere: getTextFields()["SpurTiere"]!,
spSicher: getTextFields()["SpSicher"]!,
welpenSp: getTextFields()["WelpenSp"]!,
welpenAnz: getTextFields()["WelpenAnz"]!,
wpSicher: getTextFields()["WpSicher"]!),
const SizedBox(
height: 20,
),
Anzahlen(
losungAnz: getTextFields()["LosungAnz"]!,
losungGes: getTextFields()["LosungGes"]!,
losungGen: getTextFields()["LosungGen"]!,
urinAnz: getTextFields()["UrinAnz"]!,
urinGen: getTextFields()["UrinGen"]!,
oestrAnz: getTextFields()["OestrAnz"]!,
oestrGen: getTextFields()["OestrGen"]!,
haarAnz: getTextFields()["HaarAnz"]!,
haarGen: getTextFields()["HaarGen"]!,
),
const SizedBox(
height: 20,
),
Hinweise(),
],
),
),
Step(
title: const Text("step2"),
content: Column(
children: [
VarTextField(
textController: getTextFields()["Wetter"]!,
localization: "Wetter",
dbName: "Wetter",
required: false),
const SizedBox(height: 10),
VarTextField(
textController: getTextFields()["Temperat"]!,
localization: "Temperatur",
dbName: "Temperat",
required: false),
const SizedBox(height: 10),
LetzterNiederschlag(controller: getTextFields()["RegenVor"]!),
const SizedBox(height: 20),
StreckeUSpurbedingungen(
kmAutoController: getTextFields()["KmAuto"]!,
kmFussController: getTextFields()["KmFuss"]!,
kmRadController: getTextFields()["KmRad"]!,
spGutController: getTextFields()["SpGut"]!,
spMittelController: getTextFields()["SpMittel"]!,
spSchlechtController: getTextFields()["SpSchlecht"]!,
),
const SizedBox(height: 20,),
const Divider(),
SpurGefunden(
spurFund: getTextFields()["SpurFund"]!,
spurLang: getTextFields()["SpurLang"]!,
spurTiere: getTextFields()["SpurTiere"]!,
spSicher: getTextFields()["SpSicher"]!,
welpenSp: getTextFields()["WelpenSp"]!,
welpenAnz: getTextFields()["WelpenAnz"]!,
wpSicher: getTextFields()["WpSicher"]!),
title: const Text("step3"),
content: Column(
children: [
VarTextField(textController: getTextFields()["Bemerk"]!,
localization: "Bemerkungen",
dbName: "Bemerk",
required: false),
const SizedBox(height: 20,),
Anzahlen()
],
))
const SizedBox(height: 20,),
VarTextField(textController: getTextFields()["IntKomm"]!,
localization: "Interne Kommunikation",
dbName: "IntKomm", required: false),
],
),
),
];
return Scaffold(