Created widget Streckeuspurbedingungen. yet without functionality

This commit is contained in:
nico
2025-02-11 21:15:58 +01:00
parent ef9405bd69
commit 561bd7f32b
6 changed files with 145 additions and 24 deletions

View File

@@ -2,6 +2,7 @@ import 'package:animations/animations.dart';
import 'package:fforte/screens/Excursion/widgets/bima_nutzer.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/strecke_u_spurbedingungen.dart';
import 'package:fforte/screens/sharedWidgets/datum.dart';
import 'package:fforte/screens/sharedWidgets/var_text_field.dart';
import 'package:flutter/material.dart';
@@ -213,6 +214,10 @@ class _ExcursionMainState extends State<ExcursionMain> {
required: false),
const SizedBox(height: 10),
LetzterNiederschlag(controller: getTextFields()["RegenVor"]!),
const SizedBox(height: 20),
StreckeUSpurbedingungen(),
],
))
];

View File

@@ -0,0 +1,93 @@
import 'package:flutter/material.dart';
class StreckeUSpurbedingungen extends StatefulWidget {
const StreckeUSpurbedingungen({super.key});
@override
StreckeUSpurbedingungenState createState() => StreckeUSpurbedingungenState();
}
class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
@override
Widget build(BuildContext context) {
return Column(
children: [
Align(
alignment: Alignment.bottomLeft,
child: Text("Zurueckgelegte Strecke (km)",
style: TextStyle(fontSize: 16, decoration: TextDecoration.underline),
)),
Row(
children: [
Expanded(child: Text("Auto")),
Expanded(child: TextField()),
Expanded(child: Center(child: Text("="))),
Expanded(child: Center(child: Text(""))),
Expanded(child: Center(child: Text("%"))),
],
),
Row(
children: [
Expanded(child: Text("zu Fuss")),
Expanded(child: TextField()),
Expanded(child: Center(child: Text("="))),
Expanded(child: Center(child: Text(""))),
Expanded(child: Center(child: Text("%"))),
],
),
Row(
children: [
Expanded(child: Text("Rad")),
Expanded(child: TextField()),
Expanded(child: Center(child: Text("="))),
Expanded(child: Center(child: Text(""))),
Expanded(child: Center(child: Text("%"))),
],
),
const SizedBox(height: 20,),
Row(
children: [
Expanded(flex: 1,child: Text("Gesamt:"),),
Expanded(flex: 3,child: Align(alignment: Alignment.bottomLeft, child: Text("data"),),)
],
),
const SizedBox(height: 20,),
Align(
alignment: Alignment.bottomLeft,
child: Text("Spurbedingungen (km)",
style: TextStyle(fontSize: 16, decoration: TextDecoration.underline),
),
),
Row(
children: [
Expanded(child: Text("Gut")),
Expanded(child: TextField()),
Expanded(child: Center(child: Text("="))),
Expanded(child: Center(child: Text(""))),
Expanded(child: Center(child: Text("%"))),
],
),
Row(
children: [
Expanded(child: Text("Mittel")),
Expanded(child: TextField()),
Expanded(child: Center(child: Text("="))),
Expanded(child: Center(child: Text(""))),
Expanded(child: Center(child: Text("%"))),
],
),
Row(
children: [
Expanded(child: Text("Schlecht")),
Expanded(child: TextField()),
Expanded(child: Center(child: Text("="))),
Expanded(child: Center(child: Text(""))),
Expanded(child: Center(child: Text("%"))),
],
),
],
);
}
}

View File

@@ -0,0 +1,31 @@
import 'package:flutter/material.dart';
class StreckeUSpurbedingungen extends StatefulWidget {
const StreckeUSpurbedingungen({super.key});
@override
StreckeUSpurbedingungenState createState() => StreckeUSpurbedingungenState();
}
class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
@override
Widget build(BuildContext context) {
return Column(
children: [
Text("Zurueckgelegte Strecke (km)"),
Row(
children: [
Text("Auto"),
TextField(),
],
),
Row(
children: [
Text("Auto"),
TextField(),
],
),
],
);
}
}