|
|
|
@ -25,7 +25,7 @@ class _PentryPMChecklistFormState extends State<PentryPMChecklistForm> {
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
final list = widget.models?.where((element) => element.task != null)?.toList();
|
|
|
|
final list = widget.models?? [];//.where((element) => element.task != null)?.toList();
|
|
|
|
return (list?.isEmpty ?? true)
|
|
|
|
return (list?.isEmpty ?? true)
|
|
|
|
? context.translation.noDataFound.heading5(context).center
|
|
|
|
? context.translation.noDataFound.heading5(context).center
|
|
|
|
: ListView.builder(
|
|
|
|
: ListView.builder(
|
|
|
|
@ -45,7 +45,7 @@ class _PentryPMChecklistFormState extends State<PentryPMChecklistForm> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setState(() {});
|
|
|
|
setState(() {});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
subtitle: showLabel.isNotEmpty && showLabel.contains(index) ? null : "${context.translation.status} ${list[index].taskStatusName}".bodyText(context),
|
|
|
|
subtitle: showLabel.isNotEmpty && showLabel.contains(index) ? null : "${context.translation.status} ${list[index].taskStatusName ?? ""}".bodyText(context),
|
|
|
|
iconColor: context.isDark ? AppColor.neutral30 : AppColor.neutral50,
|
|
|
|
iconColor: context.isDark ? AppColor.neutral30 : AppColor.neutral50,
|
|
|
|
collapsedIconColor: context.isDark ? AppColor.neutral30 : AppColor.neutral50,
|
|
|
|
collapsedIconColor: context.isDark ? AppColor.neutral30 : AppColor.neutral50,
|
|
|
|
childrenPadding: EdgeInsets.symmetric(horizontal: 16.toScreenWidth, vertical: 8.toScreenHeight),
|
|
|
|
childrenPadding: EdgeInsets.symmetric(horizontal: 16.toScreenWidth, vertical: 8.toScreenHeight),
|
|
|
|
|