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;