made everything use localizations
fixed one last localization
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
|
||||
|
||||
// TODO FINISH!!
|
||||
|
||||
class StreckeUSpurbedingungen extends StatefulWidget {
|
||||
final TextEditingController kmAutoController;
|
||||
@@ -35,7 +39,7 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
|
||||
)),
|
||||
Row(
|
||||
children: [
|
||||
Expanded(child: Text("Auto")),
|
||||
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(""))),
|
||||
@@ -44,7 +48,7 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Expanded(child: Text("zu Fuss")),
|
||||
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(""))),
|
||||
@@ -53,7 +57,7 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Expanded(child: Text("Rad")),
|
||||
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(""))),
|
||||
@@ -67,7 +71,7 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
|
||||
children: [
|
||||
Expanded(
|
||||
flex: 1,
|
||||
child: Text("Gesamt:"),
|
||||
child: Text(AppLocalizations.of(context)!.gesamt),
|
||||
),
|
||||
Expanded(
|
||||
flex: 3,
|
||||
@@ -84,14 +88,14 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
|
||||
Align(
|
||||
alignment: Alignment.bottomLeft,
|
||||
child: Text(
|
||||
"Spurbedingungen (km)",
|
||||
AppLocalizations.of(context)!.spurbedingungen,
|
||||
style:
|
||||
TextStyle(fontSize: 16, decoration: TextDecoration.underline),
|
||||
),
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Expanded(child: Text("Gut")),
|
||||
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(""))),
|
||||
@@ -100,7 +104,7 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Expanded(child: Text("Mittel")),
|
||||
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(""))),
|
||||
@@ -109,7 +113,7 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Expanded(child: Text("Schlecht")),
|
||||
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(""))),
|
||||
|
||||
Reference in New Issue
Block a user