add doctor image to in patient insurance approvals

merge-requests/568/head
hussam al-habibeh 4 years ago
parent 714c569a13
commit 45e9ee60a9

@ -30,6 +30,7 @@ class InsuranceApprovalInPatientModel {
String projectName;
int totaUnUsedCount;
int unUsedCount;
String doctorImage;
InsuranceApprovalInPatientModel(
{this.setupID,
@ -62,10 +63,12 @@ class InsuranceApprovalInPatientModel {
this.doctorName,
this.projectName,
this.totaUnUsedCount,
this.unUsedCount});
this.unUsedCount,
this.doctorImage});
InsuranceApprovalInPatientModel.fromJson(Map<String, dynamic> json) {
setupID = json['SetupID'];
doctorImage = json['DoctorImageURL'];
projectID = json['ProjectID'];
approvalNo = json['ApprovalNo'];
status = json['Status'];
@ -106,6 +109,7 @@ class InsuranceApprovalInPatientModel {
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['SetupID'] = this.setupID;
data['DoctorImageURL'] = this.doctorImage;
data['ProjectID'] = this.projectID;
data['ApprovalNo'] = this.approvalNo;
data['Status'] = this.status;

@ -109,8 +109,9 @@ class _InsuranceApprovalScreenNewState
},
child: DoctorCardInsurance(
patientOut: "In Patient",
profileUrl:
'https://previews.123rf.com/images/ihorbiliavskyi/ihorbiliavskyi1812/ihorbiliavskyi181200077/114296311-doctor-avatar-icon-profession-logo-male-character-a-man-in-professional-clothes-people-specialists-f.jpg',
profileUrl: model
.insuranceApprovalInPatient[index]
.doctorImage,
clinic: model
.insuranceApprovalInPatient[index]
.clinicName,

@ -164,7 +164,10 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
BorderRadius.circular(
50),
child: Image.network(
'https://previews.123rf.com/images/ihorbiliavskyi/ihorbiliavskyi1812/ihorbiliavskyi181200077/114296311-doctor-avatar-icon-profession-logo-male-character-a-man-in-professional-clothes-people-specialists-f.jpg',
model
.insuranceApprovalInPatient[
indexInsurance]
.doctorImage,
fit: BoxFit.fill,
width: 700,
),

Loading…
Cancel
Save