changed header style in clues title and track

This commit is contained in:
Nico
2025-05-05 22:10:40 +02:00
parent 4672e20968
commit b2fa4375b5
2 changed files with 23 additions and 14 deletions

View File

@@ -229,8 +229,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
title: const Text("step2"), title: const Text("step2"),
content: Column( content: Column(
children: [ children: [
// ---------- Weather // ---------- Weather
// TODO CHANGE TO LOCALIZATION
VarTextField( VarTextField(
textController: getTextFields()["Wetter"]!, textController: getTextFields()["Wetter"]!,
localization: AppLocalizations.of(context)!.wetter, localization: AppLocalizations.of(context)!.wetter,
@@ -239,7 +238,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
dbDesignation: DatabasesEnum.excursion, dbDesignation: DatabasesEnum.excursion,
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
// ---------- Temperature // ---------- Temperature
VarTextField( VarTextField(
textController: getTextFields()["Temperat"]!, textController: getTextFields()["Temperat"]!,
localization: AppLocalizations.of(context)!.temperatur, localization: AppLocalizations.of(context)!.temperatur,
@@ -248,10 +247,10 @@ class _ExcursionMainState extends State<ExcursionMain> {
dbDesignation: DatabasesEnum.excursion, dbDesignation: DatabasesEnum.excursion,
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
// ---------- Last precipitation // ---------- Last precipitation
LetzterNiederschlag(controller: getTextFields()["RegenVor"]!), LetzterNiederschlag(controller: getTextFields()["RegenVor"]!),
const SizedBox(height: 20), const SizedBox(height: 20),
// ---------- Track conditions // ---------- Track conditions
StreckeUSpurbedingungen( StreckeUSpurbedingungen(
kmAutoController: getTextFields()["KmAuto"]!, kmAutoController: getTextFields()["KmAuto"]!,
kmFussController: getTextFields()["KmFuss"]!, kmFussController: getTextFields()["KmFuss"]!,
@@ -264,7 +263,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
height: 20, height: 20,
), ),
const Divider(), const Divider(),
// ---------- Track found // ---------- Track found
SpurGefunden( SpurGefunden(
spurFund: getTextFields()["SpurFund"]!, spurFund: getTextFields()["SpurFund"]!,
spurLang: getTextFields()["SpurLang"]!, spurLang: getTextFields()["SpurLang"]!,
@@ -276,7 +275,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
const SizedBox( const SizedBox(
height: 20, height: 20,
), ),
// ---------- Counts // ---------- Counts
Anzahlen( Anzahlen(
losungAnz: getTextFields()["LosungAnz"]!, losungAnz: getTextFields()["LosungAnz"]!,
losungGes: getTextFields()["LosungGes"]!, losungGes: getTextFields()["LosungGes"]!,
@@ -292,8 +291,18 @@ class _ExcursionMainState extends State<ExcursionMain> {
height: 20, height: 20,
), ),
const Divider(), const Divider(),
// ---------- Clues const SizedBox(
// TODO Add title height: 20,
),
// ---------- Clues
Align(
alignment: Alignment.bottomLeft,
child: Text(
AppLocalizations.of(context)!.hinweise,
style:
Theme.of(context).textTheme.titleMedium,
),
),
Hinweise( Hinweise(
hinweise: getTextFields()["Hinweise"]!, hinweise: getTextFields()["Hinweise"]!,
), ),
@@ -304,7 +313,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
title: const Text("step3"), title: const Text("step3"),
content: Column( content: Column(
children: [ children: [
// ---------- Remarks // ---------- Remarks
VarTextField( VarTextField(
textController: getTextFields()["Bemerk"]!, textController: getTextFields()["Bemerk"]!,
localization: AppLocalizations.of(context)!.sonstbemerkungen, localization: AppLocalizations.of(context)!.sonstbemerkungen,
@@ -315,7 +324,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
const SizedBox( const SizedBox(
height: 20, height: 20,
), ),
// ---------- Internal communication // ---------- Internal communication
VarTextField( VarTextField(
textController: getTextFields()["IntKomm"]!, textController: getTextFields()["IntKomm"]!,
localization: AppLocalizations.of(context)!.intkomm, localization: AppLocalizations.of(context)!.intkomm,
@@ -328,7 +337,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
), ),
]; ];
// Begin of widget tree // Begin of widget tree
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
title: Text(AppLocalizations.of(context)!.excursion), title: Text(AppLocalizations.of(context)!.excursion),

View File

@@ -35,7 +35,7 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
child: Text( child: Text(
"Zurueckgelegte Strecke (km)", "Zurueckgelegte Strecke (km)",
style: style:
TextStyle(fontSize: 16, decoration: TextDecoration.underline), Theme.of(context).textTheme.titleMedium,
)), )),
Row( Row(
children: [ children: [
@@ -90,7 +90,7 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
child: Text( child: Text(
AppLocalizations.of(context)!.spurbedingungen, AppLocalizations.of(context)!.spurbedingungen,
style: style:
TextStyle(fontSize: 16, decoration: TextDecoration.underline), Theme.of(context).textTheme.titleMedium,
), ),
), ),
Row( Row(