From 8c906d6bc25ff3e9efd0aa17f714551764f55fb0 Mon Sep 17 00:00:00 2001 From: Sven Carstensen Date: Tue, 5 Mar 2024 18:42:10 +0100 Subject: [PATCH] #450 --- lib/popups/tasks_popups/signature_popup.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/popups/tasks_popups/signature_popup.dart b/lib/popups/tasks_popups/signature_popup.dart index a05d750..6e3f5c0 100644 --- a/lib/popups/tasks_popups/signature_popup.dart +++ b/lib/popups/tasks_popups/signature_popup.dart @@ -74,7 +74,11 @@ showSignaturePopup(BuildContext context, TaskInfo taskInfo, Function(String?) on getDefaultButton('Übernehmen', buttonHeight: 50, () => { Navigator.of(context).pop(), - onFinished(convertPoints(controller.points)) + if (controller.points.length > 50) { + onFinished(convertPoints(controller.points)) + } else { + showAlertDialog(context, "Fehler", "Die Unterschrift ist zu kurz.") + } }) ], ),