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

@ -109,8 +109,9 @@ class _InsuranceApprovalScreenNewState
}, },
child: DoctorCardInsurance( child: DoctorCardInsurance(
patientOut: "In Patient", patientOut: "In Patient",
profileUrl: profileUrl: model
'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', .insuranceApprovalInPatient[index]
.doctorImage,
clinic: model clinic: model
.insuranceApprovalInPatient[index] .insuranceApprovalInPatient[index]
.clinicName, .clinicName,

@ -164,7 +164,10 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
BorderRadius.circular( BorderRadius.circular(
50), 50),
child: Image.network( 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, fit: BoxFit.fill,
width: 700, width: 700,
), ),

Loading…
Cancel
Save