From 53d22a8d6db06a050221ba43afd2091463b923f8 Mon Sep 17 00:00:00 2001 From: hussam al-habibeh Date: Mon, 8 Mar 2021 09:48:15 +0200 Subject: [PATCH] hussam --- lib/screens/prescription/add_prescription_form.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/screens/prescription/add_prescription_form.dart b/lib/screens/prescription/add_prescription_form.dart index 92c11f62..0ca9b49e 100644 --- a/lib/screens/prescription/add_prescription_form.dart +++ b/lib/screens/prescription/add_prescription_form.dart @@ -863,6 +863,7 @@ class _PrescriptionFormWidgetState extends State { ), ), ), + SizedBox(height: spaceBetweenTextFileds), Container( height: screenSize.height * 0.070, child: InkWell( @@ -1137,11 +1138,13 @@ class _PrescriptionFormWidgetState extends State { onPressed: () { Navigator.pop(context); postProcedure( - icdCode: - model.patientAssessmentList[0].icdCode10ID.isEmpty + icdCode: model.patientAssessmentList.isNotEmpty + ? model.patientAssessmentList[0].icdCode10ID + .isEmpty ? "test" : model.patientAssessmentList[0].icdCode10ID - .toString(), + .toString() + : "test", // icdCode: model // .patientAssessmentList // .map((value) => value