|
|
|
|
@ -543,6 +543,17 @@ bool validate({TaskData? model}) {
|
|
|
|
|
Fluttertoast.showToast(msg: "Please Stop The Timer");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (model?.assistantEmployees != null) {
|
|
|
|
|
if (model?.modelAssistantEmployees?.startDate == null) {
|
|
|
|
|
Fluttertoast.showToast(msg: "Please Select Assistant Employee Start Time");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (model?.modelAssistantEmployees?.endDate == null) {
|
|
|
|
|
Fluttertoast.showToast(msg: "Please Select Assistant Employee End Time");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -695,7 +706,7 @@ class _AssistantEmployeeCardState extends State<AssistantEmployeeCard> {
|
|
|
|
|
backgroundColor: AppColor.neutral80,
|
|
|
|
|
controller: _workingHoursController,
|
|
|
|
|
suffixIcon: "clock".toSvgAsset(width: 20, color: context.isDark ? AppColor.neutral10 : null).paddingOnly(end: 16),
|
|
|
|
|
initialValue: taskModel?.modelAssistantEmployees?.workingHours != null ? taskModel!.modelAssistantEmployees!.workingHours.toString() : '',
|
|
|
|
|
initialValue: taskModel?.modelAssistantEmployees?.workingHours != null ? taskModel!.modelAssistantEmployees!.workingHours?.toStringAsFixed(2) : '',
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
labelStyle: AppTextStyles.textFieldLabelStyle,
|
|
|
|
|
enable: false,
|
|
|
|
|
|