From 269c8e21f6de3a46543b27721a1afe8ee3f1cfb0 Mon Sep 17 00:00:00 2001 From: hussam al-habibeh Date: Thu, 20 May 2021 16:26:20 +0300 Subject: [PATCH] hot fix --- lib/screens/prescription/add_prescription_form.dart | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/screens/prescription/add_prescription_form.dart b/lib/screens/prescription/add_prescription_form.dart index e80534c1..fc4609f3 100644 --- a/lib/screens/prescription/add_prescription_form.dart +++ b/lib/screens/prescription/add_prescription_form.dart @@ -618,7 +618,11 @@ class _PrescriptionFormWidgetState extends State { .toString() : null, validationError: - unitError, + model.itemMedicineListUnit + .length != + 1 + ? unitError + : null, enabled: false), ), ), @@ -804,7 +808,12 @@ class _PrescriptionFormWidgetState extends State { ? frequency[ 'description'] : null, - validationError: frequencyError, + validationError: model + .itemMedicineList + .length != + 1 + ? frequencyError + : null, enabled: false, ), ),