ppm checklist fix

main_design2.0
Sikander Saleem 2 years ago
parent 0324c5a7ef
commit 7132e64bcf

@ -57,15 +57,17 @@ class _PentryPMChecklistFormState extends State<PentryPMChecklistForm> {
initialValue: list[index].taskStatusId == null ? null : Lookup(id: list[index].taskStatusId, name: list[index].taskStatusName), initialValue: list[index].taskStatusId == null ? null : Lookup(id: list[index].taskStatusId, name: list[index].taskStatusName),
title: context.translation.status, title: context.translation.status,
onSelect: (value) { onSelect: (value) {
list[index].taskStatusId = value.id; if(value!=null) {
list[index].taskStatusName = value.name; list[index].taskStatusId = value.id;
list[index].taskStatusName = value.name;
}
}, },
), ),
if (showLabel.isNotEmpty && showLabel.contains(index)) 8.height, if (showLabel.isNotEmpty && showLabel.contains(index)) 8.height,
AppTextFormField( AppTextFormField(
labelText: context.translation.measuredValue, labelText: context.translation.measuredValue,
initialValue: list[index].measuredValue, initialValue: list[index].measuredValue,
enable: false, // enable: false,
backgroundColor: context.isDark ? AppColor.neutral20 : null, backgroundColor: context.isDark ? AppColor.neutral20 : null,
// backgroundColor: context.isDark ? AppColor.neutral50 : null, // backgroundColor: context.isDark ? AppColor.neutral50 : null,
// onChange: (text) { // onChange: (text) {
@ -76,7 +78,7 @@ class _PentryPMChecklistFormState extends State<PentryPMChecklistForm> {
AppTextFormField( AppTextFormField(
labelText: context.translation.comment, labelText: context.translation.comment,
initialValue: list[index].taskComment, initialValue: list[index].taskComment,
enable: false, // enable: false,
backgroundColor: context.isDark ? AppColor.neutral20 : null, backgroundColor: context.isDark ? AppColor.neutral20 : null,
// backgroundColor: context.isDark ? AppColor.neutral50 : null, // backgroundColor: context.isDark ? AppColor.neutral50 : null,
// onChange: (text) { // onChange: (text) {

Loading…
Cancel
Save