signature added.

design_3.0_loan_module
Sikander Saleem 2 weeks ago
parent 67da263e0d
commit 66b8ea59d9

@ -491,6 +491,7 @@ class TaskTypeModel {
final List<dynamic>? taskTypeRoles; final List<dynamic>? taskTypeRoles;
final bool? isInstallation; final bool? isInstallation;
final bool? isRecallAndAlert; final bool? isRecallAndAlert;
final bool? isSignatureRequired;
TaskTypeModel({ TaskTypeModel({
this.id, this.id,
@ -500,6 +501,7 @@ class TaskTypeModel {
this.taskTypeRoles, this.taskTypeRoles,
this.isInstallation, this.isInstallation,
this.isRecallAndAlert, this.isRecallAndAlert,
this.isSignatureRequired,
}); });
factory TaskTypeModel.fromJson(Map<String, dynamic> json) => TaskTypeModel( factory TaskTypeModel.fromJson(Map<String, dynamic> json) => TaskTypeModel(
@ -510,6 +512,7 @@ class TaskTypeModel {
taskTypeRoles: json['taskTypeRoles'], taskTypeRoles: json['taskTypeRoles'],
isInstallation: json['isInstallation'], isInstallation: json['isInstallation'],
isRecallAndAlert: json['isRecallAndAlert'], isRecallAndAlert: json['isRecallAndAlert'],
isSignatureRequired: json['isSignatureRequired'],
); );
Map<String, dynamic> toJson() => { Map<String, dynamic> toJson() => {
@ -520,6 +523,7 @@ class TaskTypeModel {
'taskTypeRoles': taskTypeRoles, 'taskTypeRoles': taskTypeRoles,
'isInstallation': isInstallation, 'isInstallation': isInstallation,
'isRecallAndAlert': isRecallAndAlert, 'isRecallAndAlert': isRecallAndAlert,
'isSignatureRequired': isSignatureRequired,
}; };
} }

@ -156,7 +156,7 @@ class _UpdateTaskRequestState extends State<UpdateTaskRequest> {
recallAlertTypeWidget(taskModel: taskProvider.taskRequestModel!), recallAlertTypeWidget(taskModel: taskProvider.taskRequestModel!),
], ],
//Not good approach need to use enums .... //Not good approach need to use enums ....
if (taskProvider.taskRequestModel?.taskType?.typeName == "PullOut") ...[ if (taskProvider.taskRequestModel?.taskType?.isSignatureRequired ?? false) ...[
ESignature( ESignature(
title: "End-user signature", title: "End-user signature",
backgroundColor: AppColor.fieldBgColor(context), backgroundColor: AppColor.fieldBgColor(context),

Loading…
Cancel
Save