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')} }) ], ),