added forgotten localization and removed vim savefiles
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
|
||||
|
||||
// TODO FINISH!!
|
||||
|
||||
class StreckeUSpurbedingungen extends StatefulWidget {
|
||||
@@ -12,8 +11,8 @@ class StreckeUSpurbedingungen extends StatefulWidget {
|
||||
final TextEditingController spMittelController;
|
||||
final TextEditingController spSchlechtController;
|
||||
|
||||
const StreckeUSpurbedingungen({
|
||||
required this.kmAutoController,
|
||||
const StreckeUSpurbedingungen(
|
||||
{required this.kmAutoController,
|
||||
required this.kmFussController,
|
||||
required this.kmRadController,
|
||||
required this.spGutController,
|
||||
@@ -33,14 +32,17 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
|
||||
Align(
|
||||
alignment: Alignment.bottomLeft,
|
||||
child: Text(
|
||||
"Zurueckgelegte Strecke (km)",
|
||||
style:
|
||||
Theme.of(context).textTheme.titleMedium,
|
||||
AppLocalizations.of(context)!.zurueckgelegteStrecke,
|
||||
style: Theme.of(context).textTheme.titleMedium,
|
||||
)),
|
||||
Row(
|
||||
children: [
|
||||
Expanded(child: Text(AppLocalizations.of(context)!.auto)),
|
||||
Expanded(child: TextField(keyboardType: TextInputType.number, controller: widget.kmAutoController,)),
|
||||
Expanded(
|
||||
child: TextField(
|
||||
keyboardType: TextInputType.number,
|
||||
controller: widget.kmAutoController,
|
||||
)),
|
||||
Expanded(child: Center(child: Text("="))),
|
||||
Expanded(child: Center(child: Text(""))),
|
||||
Expanded(child: Center(child: Text("%"))),
|
||||
@@ -49,7 +51,10 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
|
||||
Row(
|
||||
children: [
|
||||
Expanded(child: Text(AppLocalizations.of(context)!.zuFuss)),
|
||||
Expanded(child: TextField(keyboardType: TextInputType.number, controller: widget.kmFussController)),
|
||||
Expanded(
|
||||
child: TextField(
|
||||
keyboardType: TextInputType.number,
|
||||
controller: widget.kmFussController)),
|
||||
Expanded(child: Center(child: Text("="))),
|
||||
Expanded(child: Center(child: Text(""))),
|
||||
Expanded(child: Center(child: Text("%"))),
|
||||
@@ -58,7 +63,10 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
|
||||
Row(
|
||||
children: [
|
||||
Expanded(child: Text(AppLocalizations.of(context)!.fahrrad)),
|
||||
Expanded(child: TextField(keyboardType: TextInputType.number, controller: widget.kmRadController)),
|
||||
Expanded(
|
||||
child: TextField(
|
||||
keyboardType: TextInputType.number,
|
||||
controller: widget.kmRadController)),
|
||||
Expanded(child: Center(child: Text("="))),
|
||||
Expanded(child: Center(child: Text(""))),
|
||||
Expanded(child: Center(child: Text("%"))),
|
||||
@@ -89,14 +97,16 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
|
||||
alignment: Alignment.bottomLeft,
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.spurbedingungen,
|
||||
style:
|
||||
Theme.of(context).textTheme.titleMedium,
|
||||
style: Theme.of(context).textTheme.titleMedium,
|
||||
),
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Expanded(child: Text(AppLocalizations.of(context)!.gut)),
|
||||
Expanded(child: TextField(keyboardType: TextInputType.number, controller: widget.spGutController)),
|
||||
Expanded(
|
||||
child: TextField(
|
||||
keyboardType: TextInputType.number,
|
||||
controller: widget.spGutController)),
|
||||
Expanded(child: Center(child: Text("="))),
|
||||
Expanded(child: Center(child: Text(""))),
|
||||
Expanded(child: Center(child: Text("%"))),
|
||||
@@ -105,7 +115,10 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
|
||||
Row(
|
||||
children: [
|
||||
Expanded(child: Text(AppLocalizations.of(context)!.mittel)),
|
||||
Expanded(child: TextField(keyboardType: TextInputType.number, controller: widget.spMittelController)),
|
||||
Expanded(
|
||||
child: TextField(
|
||||
keyboardType: TextInputType.number,
|
||||
controller: widget.spMittelController)),
|
||||
Expanded(child: Center(child: Text("="))),
|
||||
Expanded(child: Center(child: Text(""))),
|
||||
Expanded(child: Center(child: Text("%"))),
|
||||
@@ -114,7 +127,11 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
|
||||
Row(
|
||||
children: [
|
||||
Expanded(child: Text(AppLocalizations.of(context)!.schlecht)),
|
||||
Expanded(child: TextField(keyboardType: TextInputType.number, controller: widget.spSchlechtController,)),
|
||||
Expanded(
|
||||
child: TextField(
|
||||
keyboardType: TextInputType.number,
|
||||
controller: widget.spSchlechtController,
|
||||
)),
|
||||
Expanded(child: Center(child: Text("="))),
|
||||
Expanded(child: Center(child: Text(""))),
|
||||
Expanded(child: Center(child: Text("%"))),
|
||||
|
||||
Reference in New Issue
Block a user