127 lines
4.4 KiB
Dart
127 lines
4.4 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
|
|
|
|
|
// TODO FINISH!!
|
|
|
|
class StreckeUSpurbedingungen extends StatefulWidget {
|
|
final TextEditingController kmAutoController;
|
|
final TextEditingController kmFussController;
|
|
final TextEditingController kmRadController;
|
|
final TextEditingController spGutController;
|
|
final TextEditingController spMittelController;
|
|
final TextEditingController spSchlechtController;
|
|
|
|
const StreckeUSpurbedingungen({
|
|
required this.kmAutoController,
|
|
required this.kmFussController,
|
|
required this.kmRadController,
|
|
required this.spGutController,
|
|
required this.spMittelController,
|
|
required this.spSchlechtController,
|
|
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(AppLocalizations.of(context)!.auto)),
|
|
Expanded(child: TextField(keyboardType: TextInputType.number, controller: widget.kmAutoController,)),
|
|
Expanded(child: Center(child: Text("="))),
|
|
Expanded(child: Center(child: Text(""))),
|
|
Expanded(child: Center(child: Text("%"))),
|
|
],
|
|
),
|
|
Row(
|
|
children: [
|
|
Expanded(child: Text(AppLocalizations.of(context)!.zuFuss)),
|
|
Expanded(child: TextField(keyboardType: TextInputType.number, controller: widget.kmFussController)),
|
|
Expanded(child: Center(child: Text("="))),
|
|
Expanded(child: Center(child: Text(""))),
|
|
Expanded(child: Center(child: Text("%"))),
|
|
],
|
|
),
|
|
Row(
|
|
children: [
|
|
Expanded(child: Text(AppLocalizations.of(context)!.fahrrad)),
|
|
Expanded(child: TextField(keyboardType: TextInputType.number, controller: widget.kmRadController)),
|
|
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(AppLocalizations.of(context)!.gesamt),
|
|
),
|
|
Expanded(
|
|
flex: 3,
|
|
child: Align(
|
|
alignment: Alignment.bottomLeft,
|
|
child: Text("data"),
|
|
),
|
|
)
|
|
],
|
|
),
|
|
const SizedBox(
|
|
height: 20,
|
|
),
|
|
Align(
|
|
alignment: Alignment.bottomLeft,
|
|
child: Text(
|
|
AppLocalizations.of(context)!.spurbedingungen,
|
|
style:
|
|
TextStyle(fontSize: 16, decoration: TextDecoration.underline),
|
|
),
|
|
),
|
|
Row(
|
|
children: [
|
|
Expanded(child: Text(AppLocalizations.of(context)!.gut)),
|
|
Expanded(child: TextField(keyboardType: TextInputType.number, controller: widget.spGutController)),
|
|
Expanded(child: Center(child: Text("="))),
|
|
Expanded(child: Center(child: Text(""))),
|
|
Expanded(child: Center(child: Text("%"))),
|
|
],
|
|
),
|
|
Row(
|
|
children: [
|
|
Expanded(child: Text(AppLocalizations.of(context)!.mittel)),
|
|
Expanded(child: TextField(keyboardType: TextInputType.number, controller: widget.spMittelController)),
|
|
Expanded(child: Center(child: Text("="))),
|
|
Expanded(child: Center(child: Text(""))),
|
|
Expanded(child: Center(child: Text("%"))),
|
|
],
|
|
),
|
|
Row(
|
|
children: [
|
|
Expanded(child: Text(AppLocalizations.of(context)!.schlecht)),
|
|
Expanded(child: TextField(keyboardType: TextInputType.number, controller: widget.spSchlechtController,)),
|
|
Expanded(child: Center(child: Text("="))),
|
|
Expanded(child: Center(child: Text(""))),
|
|
Expanded(child: Center(child: Text("%"))),
|
|
],
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|