renamed steps

This commit is contained in:
Nico
2024-03-24 15:46:11 +01:00
parent a902541591
commit 4eca4557fd
7 changed files with 45 additions and 38 deletions

View File

@@ -405,8 +405,9 @@ class _AddCamMainState extends State<AddCamMain> {
Widget build(BuildContext context) {
// List with the steps. The steps itself will be "shown" later
List<Step> getSteps() => [
// First step
Step(
title: Text(AppLocalizations.of(context)!.firstStep),
title: Text(AppLocalizations.of(context)!.firststep),
content: Column(
children: [
Align(
@@ -509,9 +510,9 @@ class _AddCamMainState extends State<AddCamMain> {
],
)),
// Second step (location)
// Second step
Step(
title: Text(AppLocalizations.of(context)!.locations),
title: Text(AppLocalizations.of(context)!.secondstep),
content: Column(
children: [
Align(
@@ -595,9 +596,9 @@ class _AddCamMainState extends State<AddCamMain> {
),
],
)),
// Date Step
// Third step
Step(
title: Text(AppLocalizations.of(context)!.date),
title: Text(AppLocalizations.of(context)!.thirdstep),
content: Column(
children: [
Datum(
@@ -656,8 +657,9 @@ class _AddCamMainState extends State<AddCamMain> {
),
],
)),
// Fourth step
Step(
title: Text(AppLocalizations.of(context)!.kontakt),
title: Text(AppLocalizations.of(context)!.fourthstep),
content: Column(
children: [
const SizedBox(

View File

@@ -1,7 +1,6 @@
// ignore_for_file: non_constant_identifier_names
import 'package:fforte/db_helper.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_map/flutter_map.dart';
import 'package:geolocator/geolocator.dart';
@@ -234,7 +233,7 @@ class Karte extends StatefulWidget {
}
class KarteState extends State<Karte> {
List<Marker> markers = [Marker(point: LatLng(0, 0), child: Icon(Icons.location_on))];
List<Marker> markers = [const Marker(point: LatLng(0, 0), child: Icon(Icons.location_on))];
LatLng? selectedPosition;
Position? updatedPosition;
bool saveVisible = false;

View File

@@ -6,12 +6,12 @@
"deleteEverything": "Alles löschen?",
"deleteEverythingContent": "Alle Standorte werden lokal gelöscht!",
"camLink": "ID der Kamera",
"secondStep": "DATUM, KONTAKT, ORT",
"date": "DATUM, AUFBAU, KONTROLLE",
"kontakt": "KONTAKT, ANSPRECHPARTNER",
"firststep": "ORT, KAMERA, TERRETORIUM",
"secondstep": "ORT, UMGEBUNG",
"thirdstep": "DATUM, AUFBAU, KONTROLLE",
"fourthstep": "KONTAKT, ANSPRECHPARTNER",
"status": "Status",
"viewplacesappbar": "Standorte ansehen",
"locations": "ORT, UMGEBUNG",
"rudel": "Territorium",
"adresse1": "Adresse 1",
"adresse2": "Adresse 2",
@@ -82,5 +82,7 @@
"apiaddress": "Api-Adresse",
"benutzername": "Benutzername",
"filelocation": "Ort der zuletzt gespeicherten Datei:",
"open": "öffnen"
"open": "öffnen",
"date": "Datum",
"location": "Standort"
}

View File

@@ -27,15 +27,26 @@
"@camLink": {
"description": "Camera link textfield"
},
"firstStep": "PLACE, CAMERA, TERRITORY",
"firststep": "PLACE, CAMERA, TERRITORY",
"@firstStep": {
"description": "title first step"
},
"secondstep": "Place, neighbouhood",
"@secondstep": {
"description": "second step header"
},
"date": "Installation and control date ",
"@date": {
"thirdstep": "Installation and control date ",
"@thirdstep": {
"description": "date step"
},
"fourthstep": "Contact",
"@fourthstep": {
"description": "contact header"
},
"settings": "Settings",
"@settings": {
@@ -47,18 +58,10 @@
"description": "Change name and state header"
},
"secondStep": "Date, Contact",
"@secondStep": {
"description": "title second step"
},
"viewplacesappbar": "View Places",
"@viewplacesappbar": {
"description": "view places appbar"
},
"locations": "Place, neighbouhood",
"@locations": {
"description": "Location textfield"
},
"rudel": "Pack",
"@rudel": {
"description": "Rudel textfield"
@@ -202,10 +205,6 @@
"description": "summertime header"
},
"kontakt": "Contact",
"@kontakt": {
"description": "contact header"
},
"auftrag": "Order",
"@auftrag": {
@@ -398,6 +397,16 @@
"open": "Open",
"@open": {
"description": "open button"
},
"date": "Date",
"@date": {
"description": "date text"
},
"location": "Location",
"@location": {
"description": "Location text"
}
}

View File

@@ -199,7 +199,7 @@ class _ViewCamsState extends State<ViewCams> {
Text(
'${AppLocalizations.of(context)!.betreuung}: ${place['Betreuung']}'),
Text(
'${AppLocalizations.of(context)!.locations}: ${place['Standort']}'),
'${AppLocalizations.of(context)!.location}: ${place['Standort']}'),
Text(
'${AppLocalizations.of(context)!.adresse3}: ${place['Adresse3']}'),
Text(