Erweiterungen
This commit is contained in:
1 parent
955d7b3cb4
commit
e9811da904
25 files changed
+1505
-128
No files matched your search
@@ -8,6 +8,7 @@ import 'package:stadtbote/model/job_tour.dart';
|
||||
import '../model/job.dart';
|
||||
import '../popups/files_popup.dart';
|
||||
import '../popups/map_popup.dart';
|
||||
import '../tools/app_localizations.dart';
|
||||
import '../tools/constants.dart';
|
||||
import '../tools/util.dart';
|
||||
|
||||
@@ -59,7 +60,7 @@ class _TourDetailsPageState extends State<TourDetailsPage> with ProducerMixin {
|
||||
if (widget.tour.rem.isNotEmpty) {
|
||||
remark += '${widget.tour.rem}\n';
|
||||
} else {
|
||||
remark = "* Keine Bemerkung vorhanden *";
|
||||
remark = 'no_remark'.tr;
|
||||
}
|
||||
|
||||
return Padding(
|
||||
@@ -77,7 +78,7 @@ class _TourDetailsPageState extends State<TourDetailsPage> with ProducerMixin {
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
Text(
|
||||
"${"Station ${widget.tour.sort}"} ${mapTourMode(widget.tour.mode)}",
|
||||
"${'station'.tr} ${widget.tour.sort} ${mapTourMode(widget.tour.mode)}",
|
||||
textAlign: TextAlign.left,
|
||||
),
|
||||
Text(
|
||||
@@ -97,11 +98,11 @@ class _TourDetailsPageState extends State<TourDetailsPage> with ProducerMixin {
|
||||
textAlign: TextAlign.left,
|
||||
),
|
||||
Text(
|
||||
"Tel.: ${widget.tour.phone}",
|
||||
"${'phone'.tr} ${widget.tour.phone}",
|
||||
textAlign: TextAlign.left,
|
||||
),
|
||||
Text(
|
||||
"Komm-#: ${widget.tour.com}",
|
||||
"${'commission_number'.tr}: ${widget.tour.com}",
|
||||
textAlign: TextAlign.left,
|
||||
),
|
||||
if (widget.tour.files != null && widget.tour.files!.isNotEmpty) ...[
|
||||
@@ -110,9 +111,9 @@ class _TourDetailsPageState extends State<TourDetailsPage> with ProducerMixin {
|
||||
children: [
|
||||
FilesBadge(files: widget.tour.files),
|
||||
const SizedBox(width: 8),
|
||||
const Text(
|
||||
'Dateien verfügbar',
|
||||
style: TextStyle(
|
||||
Text(
|
||||
'files_available'.tr,
|
||||
style: const TextStyle(
|
||||
fontSize: 12,
|
||||
color: Colors.grey,
|
||||
),
|
||||
@@ -122,7 +123,7 @@ class _TourDetailsPageState extends State<TourDetailsPage> with ProducerMixin {
|
||||
],
|
||||
const SizedBox(height: 10),
|
||||
getDefaultButton(
|
||||
'Karte',
|
||||
'map'.tr,
|
||||
() => {
|
||||
if (widget.tour.pos != null)
|
||||
{
|
||||
@@ -131,8 +132,8 @@ class _TourDetailsPageState extends State<TourDetailsPage> with ProducerMixin {
|
||||
}
|
||||
else
|
||||
{
|
||||
showAlertDialog('Information',
|
||||
'Es liegt keine Position für diese Station vor')
|
||||
showAlertDialog('information'.tr,
|
||||
'no_position'.tr)
|
||||
}
|
||||
}),
|
||||
],
|
||||
@@ -158,7 +159,7 @@ class _TourDetailsPageState extends State<TourDetailsPage> with ProducerMixin {
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
getDefaultButton(
|
||||
'Weiter',
|
||||
'next'.tr,
|
||||
() async => {
|
||||
sendMessage(
|
||||
routingKey: Constants.messageTopicPushContentView,
|
||||
|
||||
Reference in new issue
Block a user