From beb4ef5cb7a7df013058befe9b232d705c915ad1 Mon Sep 17 00:00:00 2001 From: Sven Carstensen Date: Mon, 6 May 2024 11:18:07 +0200 Subject: [PATCH] Fehlerkorrekturen --- lib/content_views/tour_details_page.dart | 2 +- lib/popups/tasks_popups/take_photos_popup.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/content_views/tour_details_page.dart b/lib/content_views/tour_details_page.dart index b31dfb9..b064c88 100644 --- a/lib/content_views/tour_details_page.dart +++ b/lib/content_views/tour_details_page.dart @@ -63,7 +63,7 @@ class _TourDetailsPageState extends State { var remark = ""; if (widget.tour.rem.isNotEmpty) { - remark += "$widget.tour.rem\n"; + remark += '${widget.tour.rem}\n'; } else { remark = "* Keine Bemerkung vorhanden *"; } diff --git a/lib/popups/tasks_popups/take_photos_popup.dart b/lib/popups/tasks_popups/take_photos_popup.dart index d9327ed..5b72f80 100644 --- a/lib/popups/tasks_popups/take_photos_popup.dart +++ b/lib/popups/tasks_popups/take_photos_popup.dart @@ -103,10 +103,10 @@ Future showTakePhotosPopup(BuildContext context, TaskInfo taskInfo, Functi 'Übernehmen', buttonHeight: 50, () => { - if (imageDataList.length == taskInfo.task.min! && imageDataList.length <= taskInfo.task.max!) + if (imageDataList.length >= taskInfo.task.min! && imageDataList.length <= taskInfo.task.max!) {Navigator.of(context).pop(), onFinished(imageDataList)} else - {showAlertDialog(context, 'Fehler', 'Sie müssen mindestens ${taskInfo.task.min} Foto(s) aufnehmen')} + {showAlertDialog(context, 'Fehler', 'Es müssen mindestens ${taskInfo.task.min} Foto(s) aufgenommen werden')} }) ], ),