diff --git a/lib/screens/prescription/prescription_screen.dart b/lib/screens/prescription/prescription_screen.dart index 11541e39..e0223d41 100644 --- a/lib/screens/prescription/prescription_screen.dart +++ b/lib/screens/prescription/prescription_screen.dart @@ -379,10 +379,12 @@ class _NewPrescriptionScreenState extends State { ), Expanded( child: AppText( - model.prescriptionList[0].entityList[index].pharmacistRemarks == null - ? "" - : model.prescriptionList[0].entityList[index].pharmacistRemarks, - fontSize: 15.0), + "", // commening below code because there is an error coming in the model please fix it before pushing it + // model.prescriptionList[0].entityList[index].pharmacistRemarks == null + // ? "" + // : model.prescriptionList[0].entityList[index].pharmacistRemarks, + fontSize: + 15.0), ) ], ), diff --git a/lib/screens/sick-leave/add-sickleave.dart b/lib/screens/sick-leave/add-sickleave.dart index 93353d85..81d62513 100644 --- a/lib/screens/sick-leave/add-sickleave.dart +++ b/lib/screens/sick-leave/add-sickleave.dart @@ -116,11 +116,17 @@ class AddSickLeavScreen extends StatelessWidget { icon: Icon( Icons.open_in_full, size: 25, + color: item.status == 1 + ? Colors.grey[400] + : Colors.black, ), // color: Colors.green, //Colors.black, onPressed: () => { - openSickLeave(context, true, - extendedData: item) + if (item.status != 1) + { + openSickLeave(context, true, + extendedData: item) + } }, )) : SizedBox(), diff --git a/lib/util/helpers.dart b/lib/util/helpers.dart index 07709fc9..45134699 100644 --- a/lib/util/helpers.dart +++ b/lib/util/helpers.dart @@ -109,7 +109,7 @@ class Helpers { itemExtent: 25, //height of each item - looping: true, + looping: false, onSelectedItemChanged: (int index) { // selectitem =index; cupertinoPickerIndex = index;