diff --git a/lib/views/widgets/pentry/pentry_ppm_check_list_form.dart b/lib/views/widgets/pentry/pentry_ppm_check_list_form.dart index 5d6d53fc..3ec635a9 100644 --- a/lib/views/widgets/pentry/pentry_ppm_check_list_form.dart +++ b/lib/views/widgets/pentry/pentry_ppm_check_list_form.dart @@ -57,15 +57,17 @@ class _PentryPMChecklistFormState extends State { initialValue: list[index].taskStatusId == null ? null : Lookup(id: list[index].taskStatusId, name: list[index].taskStatusName), title: context.translation.status, onSelect: (value) { - list[index].taskStatusId = value.id; - list[index].taskStatusName = value.name; + if(value!=null) { + list[index].taskStatusId = value.id; + list[index].taskStatusName = value.name; + } }, ), if (showLabel.isNotEmpty && showLabel.contains(index)) 8.height, AppTextFormField( labelText: context.translation.measuredValue, initialValue: list[index].measuredValue, - enable: false, + // enable: false, backgroundColor: context.isDark ? AppColor.neutral20 : null, // backgroundColor: context.isDark ? AppColor.neutral50 : null, // onChange: (text) { @@ -76,7 +78,7 @@ class _PentryPMChecklistFormState extends State { AppTextFormField( labelText: context.translation.comment, initialValue: list[index].taskComment, - enable: false, + // enable: false, backgroundColor: context.isDark ? AppColor.neutral20 : null, // backgroundColor: context.isDark ? AppColor.neutral50 : null, // onChange: (text) {