Merge pull request 'dev_sultan' (#229) from dev_sultan into master
Reviewed-on: https://34.17.182.140/Haroon6138/HMG_Patient_App_New/pulls/229haroon_dev
commit
b7986b753b
@ -1,3 +1,4 @@
|
|||||||
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg width="26" height="29" viewBox="0 0 26 29" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M28.835 8.71465C29 10.2375 29 12.157 29 14.6057L29 17.393V17.3931C29 19.8418 29 21.7612 28.835 23.284C28.6667 24.8381 28.3169 26.0973 27.5358 27.1724C27.0629 27.8232 26.4905 28.3956 25.8397 28.8685C24.7646 29.6496 23.5054 29.9993 21.9514 30.1677C20.4285 30.3327 18.5091 30.3327 16.0604 30.3327H16.0603H15.9397C13.491 30.3327 11.5715 30.3327 10.0486 30.1677C8.49458 29.9993 7.23541 29.6496 6.16031 28.8685C5.50945 28.3956 4.93708 27.8232 4.4642 27.1724C3.6831 26.0973 3.33334 24.8381 3.16497 23.284C2.99998 21.7612 2.99999 19.8418 3 17.3931V17.393L3 14.6056V14.6056C2.99999 12.1569 2.99998 10.2375 3.16497 8.71465C3.33334 7.1606 3.6831 5.90143 4.4642 4.82633C4.93708 4.17547 5.50945 3.6031 6.16032 3.13022C7.23541 2.34911 8.49459 1.99936 10.0486 1.83099C11.5715 1.666 13.4909 1.666 15.9395 1.66602H15.9396H16.0604H16.0605C18.5091 1.66601 20.4285 1.666 21.9514 1.83099C23.5054 1.99936 24.7646 2.34911 25.8397 3.13022C26.4905 3.6031 27.0629 4.17547 27.5358 4.82633C28.3169 5.90143 28.6667 7.1606 28.835 8.71465ZM16 5.66602C16.7364 5.66602 17.3333 6.26297 17.3333 6.99935V9.24299C17.6276 9.59842 17.8786 9.66602 18 9.66602C18.1485 9.66602 18.4909 9.56487 18.8693 8.95942C19.2595 8.33494 20.0821 8.14507 20.7066 8.53531C21.3311 8.92555 21.521 9.74814 21.1307 10.3726C20.4782 11.4167 19.4088 12.3327 18 12.3327C17.7685 12.3327 17.5462 12.3079 17.3333 12.262L17.3333 13.0409C17.8948 13.4337 18.584 13.666 19.3333 13.666C20.2769 13.666 21.1252 13.2976 21.7432 12.7042C22.2744 12.1942 23.1185 12.2114 23.6285 12.7426C24.1385 13.2738 24.1213 14.1178 23.5901 14.6278C22.49 15.6841 20.9852 16.3327 19.3333 16.3327C18.6338 16.3327 17.9606 16.2163 17.3333 16.002V18.0531C18.0392 17.9934 18.7108 17.8873 19.335 17.7423C21.0296 17.3485 23 18.5587 23 20.5393C23 21.5265 22.4537 22.5524 21.4063 22.9419C20.935 23.1172 20.4345 23.269 19.911 23.3954C19.3839 23.5228 18.9627 23.8554 18.7618 24.3012L18.6199 24.6159C18.1546 25.6483 17.1409 26.3327 16 26.3327C14.8591 26.3327 13.8454 25.6483 13.3801 24.6159L13.2382 24.3012C13.0373 23.8554 12.6161 23.5228 12.089 23.3954C11.5655 23.269 11.065 23.1172 10.5937 22.9419C9.54632 22.5524 9 21.5265 9 20.5393C9 18.5587 10.9704 17.3485 12.665 17.7423C13.2892 17.8873 13.9608 17.9934 14.6667 18.0531V16.002C14.0394 16.2164 13.3662 16.3327 12.6667 16.3327C11.0148 16.3327 9.51001 15.6841 8.4099 14.6278C7.87872 14.1178 7.86154 13.2738 8.37154 12.7426C8.88155 12.2114 9.72559 12.1942 10.2568 12.7042C10.8748 13.2976 11.7231 13.666 12.6667 13.666C13.416 13.666 14.1052 13.4337 14.6667 13.0409V12.262C14.4538 12.3079 14.2315 12.3327 14 12.3327C12.5912 12.3327 11.5218 11.4167 10.8693 10.3726C10.4791 9.74814 10.6689 8.92555 11.2934 8.53531C11.9179 8.14507 12.7405 8.33494 13.1307 8.95942C13.5091 9.56487 13.8515 9.66602 14 9.66602C14.1214 9.66602 14.3724 9.59842 14.6667 9.24299L14.6667 6.99935C14.6667 6.26297 15.2636 5.66602 16 5.66602Z" fill="#2E3039"/>
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 4C13.5523 4 14 4.44772 14 5V7.35861C14.3647 7.84353 14.7315 7.99997 15.0001 7.99997C15.3062 7.99997 15.7395 7.79698 16.1521 7.13669C16.4448 6.66833 17.0617 6.52593 17.5301 6.81861C17.9984 7.11129 18.1408 7.72823 17.8482 8.19659C17.2299 9.18588 16.2514 9.99997 15.0001 9.99997C14.644 9.99997 14.3099 9.93402 14 9.81685V11.2101C14.6402 11.7041 15.4494 12 16.3333 12C17.3655 12 18.2958 11.5965 18.9741 10.9453C19.3725 10.5628 20.0055 10.5757 20.388 10.9741C20.7705 11.3725 20.7576 12.0055 20.3592 12.388C19.3194 13.3864 17.8967 14 16.3333 14C15.5039 14 14.7141 13.8273 14 13.516V16.4116C14.8282 16.3596 15.6132 16.244 16.335 16.0762C18.0296 15.6825 20 16.8927 20 18.8733C20 19.8605 19.4537 20.8864 18.4063 21.2759C17.935 21.4511 17.4345 21.603 16.911 21.7294C16.3839 21.8567 15.9627 22.1893 15.7618 22.6351L15.6199 22.9499C15.1546 23.9822 14.1409 24.6667 13 24.6667C11.8591 24.6667 10.8454 23.9822 10.3801 22.9499L10.2382 22.6351C10.0373 22.1893 9.61608 21.8567 9.08902 21.7294C8.56548 21.603 8.06504 21.4511 7.59375 21.2759C6.54632 20.8864 6 19.8605 6 18.8733C6 16.8927 7.97038 15.6825 9.66501 16.0762C10.3868 16.244 11.1718 16.3596 12 16.4116V13.516C11.2859 13.8273 10.4961 14 9.66667 14C8.1033 14 6.6806 13.3864 5.64076 12.388C5.24237 12.0055 5.22949 11.3725 5.61199 10.9741C5.99449 10.5757 6.62753 10.5628 7.02591 10.9453C7.70416 11.5965 8.63452 12 9.66667 12C10.5506 12 11.3598 11.7041 12 11.2101V9.81695C11.6901 9.93406 11.3562 9.99997 11.0001 9.99997C9.74886 9.99997 8.77033 9.18588 8.1521 8.19659C7.85942 7.72823 8.00183 7.11129 8.47018 6.81861C8.93854 6.52593 9.55548 6.66833 9.84816 7.13669C10.2608 7.79698 10.6941 7.99997 11.0001 7.99997C11.2687 7.99997 11.6354 7.84361 12 7.35897V5C12 4.44772 12.4477 4 13 4Z" fill="#2E3039"/>
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M26 15.727V12.9397C26 10.491 26 8.57148 25.835 7.04863C25.6667 5.49458 25.3169 4.23541 24.5358 3.16031C24.0629 2.50945 23.4905 1.93708 22.8397 1.4642C21.7646 0.683098 20.5054 0.333341 18.9514 0.16497C17.4285 -1.87904e-05 15.5091 -1.04558e-05 13.0604 1.75524e-07H12.9396C10.491 -1.06751e-05 8.57146 -1.91778e-05 7.04863 0.16497C5.49459 0.33334 4.23541 0.683097 3.16032 1.4642C2.50945 1.93708 1.93708 2.50945 1.4642 3.16031C0.683099 4.23541 0.333342 5.49458 0.164971 7.04863C-1.6585e-05 8.57145 -9.22962e-06 10.4909 1.48706e-07 12.9395V15.727C-9.56553e-06 18.1757 -1.7181e-05 20.0952 0.164971 21.618C0.333341 23.1721 0.683098 24.4313 1.4642 25.5064C1.93708 26.1572 2.50945 26.7296 3.16031 27.2025C4.23541 27.9836 5.49458 28.3333 7.04863 28.5017C8.57148 28.6667 10.491 28.6667 12.9397 28.6667H13.0603C15.509 28.6667 17.4285 28.6667 18.9514 28.5017C20.5054 28.3333 21.7646 27.9836 22.8397 27.2025C23.4905 26.7296 24.0629 26.1572 24.5358 25.5064C25.3169 24.4313 25.6667 23.1721 25.835 21.618C26 20.0952 26 18.1757 26 15.727ZM23.8467 21.4026C23.6967 22.7865 23.4099 23.6534 22.9178 24.3308C22.5682 24.8119 22.1452 25.2349 21.6641 25.5844C20.9868 26.0765 20.1198 26.3634 18.7359 26.5133C17.3333 26.6653 15.5221 26.6667 13 26.6667C10.4779 26.6667 8.66666 26.6653 7.26406 26.5133C5.88018 26.3634 5.01322 26.0765 4.33588 25.5844C3.85481 25.2349 3.43176 24.8119 3.08224 24.3308C2.59012 23.6534 2.30327 22.7865 2.15334 21.4026C2.00137 20 2 18.1888 2 15.6667V13C2 10.4779 2.00137 8.66665 2.15334 7.26406C2.30327 5.88017 2.59012 5.01322 3.08224 4.33588C3.43176 3.85481 3.85481 3.43175 4.33589 3.08224C5.01322 2.59012 5.88018 2.30327 7.26406 2.15333C8.66666 2.00137 10.4779 2 13 2C15.5221 2 17.3333 2.00137 18.7359 2.15334C20.1198 2.30327 20.9868 2.59012 21.6641 3.08224C22.1452 3.43175 22.5682 3.85481 22.9178 4.33588C23.4099 5.01322 23.6967 5.88018 23.8467 7.26406C23.9986 8.66665 24 10.4779 24 13V15.6667C24 18.1888 23.9986 20 23.8467 21.4026Z" fill="#2E3039"/>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.8 KiB |
@ -1,160 +1,169 @@
|
|||||||
|
import 'dart:convert';
|
||||||
|
|
||||||
class PatientVaccineResponseModel {
|
class PatientVaccineResponseModel {
|
||||||
String? setupID;
|
String? setupId;
|
||||||
int? projectID;
|
int? projectId;
|
||||||
int? patientID;
|
int? patientId;
|
||||||
int? invoiceNo;
|
int? invoiceNo;
|
||||||
String? procedureID;
|
String? procedureId;
|
||||||
String? vaccineName;
|
String? vaccineName;
|
||||||
Null? vaccineNameN;
|
dynamic vaccineNameN;
|
||||||
String? invoiceDate;
|
String? invoiceDate;
|
||||||
int? doctorID;
|
int? doctorId;
|
||||||
int? clinicID;
|
int? clinicId;
|
||||||
String? firstName;
|
String? firstName;
|
||||||
String? middleName;
|
String? middleName;
|
||||||
String? lastName;
|
String? lastName;
|
||||||
Null? firstNameN;
|
dynamic firstNameN;
|
||||||
Null? middleNameN;
|
dynamic middleNameN;
|
||||||
Null? lastNameN;
|
dynamic lastNameN;
|
||||||
String? dateofBirth;
|
String? dateofBirth;
|
||||||
int? actualDoctorRate;
|
int? actualDoctorRate;
|
||||||
String? age;
|
String? age;
|
||||||
String? clinicName;
|
String? clinicName;
|
||||||
Null? decimalDoctorRate;
|
double? decimalDoctorRate;
|
||||||
Null? doctorImageURL;
|
dynamic doctorImageUrl;
|
||||||
String? doctorName;
|
String? doctorName;
|
||||||
int? doctorRate;
|
int? doctorRate;
|
||||||
int? doctorStarsRate;
|
double? doctorStarsRate;
|
||||||
String? doctorTitle;
|
String? doctorTitle;
|
||||||
int? gender;
|
int? gender;
|
||||||
Null? genderDescription;
|
dynamic genderDescription;
|
||||||
Null? invoiceNoVP;
|
dynamic invoiceNoVp;
|
||||||
bool? isActiveDoctorProfile;
|
bool? isActiveDoctorProfile;
|
||||||
bool? isDoctorAllowVedioCall;
|
bool? isDoctorAllowVedioCall;
|
||||||
bool? isExecludeDoctor;
|
bool? isExecludeDoctor;
|
||||||
int? noOfPatientsRate;
|
int? noOfPatientsRate;
|
||||||
String? patientName;
|
String? patientName;
|
||||||
String? projectName;
|
String? projectName;
|
||||||
String? qR;
|
String? qr;
|
||||||
|
List<dynamic>? speciality;
|
||||||
String? vaccinationDate;
|
String? vaccinationDate;
|
||||||
|
|
||||||
PatientVaccineResponseModel(
|
PatientVaccineResponseModel({
|
||||||
{this.setupID,
|
this.setupId,
|
||||||
this.projectID,
|
this.projectId,
|
||||||
this.patientID,
|
this.patientId,
|
||||||
this.invoiceNo,
|
this.invoiceNo,
|
||||||
this.procedureID,
|
this.procedureId,
|
||||||
this.vaccineName,
|
this.vaccineName,
|
||||||
this.vaccineNameN,
|
this.vaccineNameN,
|
||||||
this.invoiceDate,
|
this.invoiceDate,
|
||||||
this.doctorID,
|
this.doctorId,
|
||||||
this.clinicID,
|
this.clinicId,
|
||||||
this.firstName,
|
this.firstName,
|
||||||
this.middleName,
|
this.middleName,
|
||||||
this.lastName,
|
this.lastName,
|
||||||
this.firstNameN,
|
this.firstNameN,
|
||||||
this.middleNameN,
|
this.middleNameN,
|
||||||
this.lastNameN,
|
this.lastNameN,
|
||||||
this.dateofBirth,
|
this.dateofBirth,
|
||||||
this.actualDoctorRate,
|
this.actualDoctorRate,
|
||||||
this.age,
|
this.age,
|
||||||
this.clinicName,
|
this.clinicName,
|
||||||
this.decimalDoctorRate,
|
this.decimalDoctorRate,
|
||||||
this.doctorImageURL,
|
this.doctorImageUrl,
|
||||||
this.doctorName,
|
this.doctorName,
|
||||||
this.doctorRate,
|
this.doctorRate,
|
||||||
this.doctorStarsRate,
|
this.doctorStarsRate,
|
||||||
this.doctorTitle,
|
this.doctorTitle,
|
||||||
this.gender,
|
this.gender,
|
||||||
this.genderDescription,
|
this.genderDescription,
|
||||||
this.invoiceNoVP,
|
this.invoiceNoVp,
|
||||||
this.isActiveDoctorProfile,
|
this.isActiveDoctorProfile,
|
||||||
this.isDoctorAllowVedioCall,
|
this.isDoctorAllowVedioCall,
|
||||||
this.isExecludeDoctor,
|
this.isExecludeDoctor,
|
||||||
this.noOfPatientsRate,
|
this.noOfPatientsRate,
|
||||||
this.patientName,
|
this.patientName,
|
||||||
this.projectName,
|
this.projectName,
|
||||||
this.qR,
|
this.qr,
|
||||||
this.vaccinationDate});
|
this.speciality,
|
||||||
|
this.vaccinationDate,
|
||||||
|
});
|
||||||
|
|
||||||
|
factory PatientVaccineResponseModel.fromRawJson(String str) => PatientVaccineResponseModel.fromJson(json.decode(str));
|
||||||
|
|
||||||
|
String toRawJson() => json.encode(toJson());
|
||||||
|
|
||||||
PatientVaccineResponseModel.fromJson(Map<String, dynamic> json) {
|
factory PatientVaccineResponseModel.fromJson(Map<String, dynamic> json) => PatientVaccineResponseModel(
|
||||||
setupID = json['SetupID'];
|
setupId: json["SetupID"],
|
||||||
projectID = json['ProjectID'];
|
projectId: json["ProjectID"],
|
||||||
patientID = json['PatientID'];
|
patientId: json["PatientID"],
|
||||||
invoiceNo = json['InvoiceNo'];
|
invoiceNo: json["InvoiceNo"],
|
||||||
procedureID = json['ProcedureID'];
|
procedureId: json["ProcedureID"],
|
||||||
vaccineName = json['VaccineName'];
|
vaccineName: json["VaccineName"],
|
||||||
vaccineNameN = json['VaccineNameN'];
|
vaccineNameN: json["VaccineNameN"],
|
||||||
invoiceDate = json['InvoiceDate'];
|
invoiceDate: json["InvoiceDate"],
|
||||||
doctorID = json['DoctorID'];
|
doctorId: json["DoctorID"],
|
||||||
clinicID = json['ClinicID'];
|
clinicId: json["ClinicID"],
|
||||||
firstName = json['FirstName'];
|
firstName: json["FirstName"],
|
||||||
middleName = json['MiddleName'];
|
middleName: json["MiddleName"],
|
||||||
lastName = json['LastName'];
|
lastName: json["LastName"],
|
||||||
firstNameN = json['FirstNameN'];
|
firstNameN: json["FirstNameN"],
|
||||||
middleNameN = json['MiddleNameN'];
|
middleNameN: json["MiddleNameN"],
|
||||||
lastNameN = json['LastNameN'];
|
lastNameN: json["LastNameN"],
|
||||||
dateofBirth = json['DateofBirth'];
|
dateofBirth: json["DateofBirth"],
|
||||||
actualDoctorRate = json['ActualDoctorRate'];
|
actualDoctorRate: json["ActualDoctorRate"],
|
||||||
age = json['Age'];
|
age: json["Age"],
|
||||||
clinicName = json['ClinicName'];
|
clinicName: json["ClinicName"],
|
||||||
decimalDoctorRate = json['DecimalDoctorRate'];
|
decimalDoctorRate: json["DecimalDoctorRate"]?.toDouble(),
|
||||||
doctorImageURL = json['DoctorImageURL'];
|
doctorImageUrl: json["DoctorImageURL"],
|
||||||
doctorName = json['DoctorName'];
|
doctorName: json["DoctorName"],
|
||||||
doctorRate = json['DoctorRate'];
|
doctorRate: json["DoctorRate"],
|
||||||
doctorStarsRate = json['DoctorStarsRate'];
|
doctorStarsRate: json["DoctorStarsRate"]?.toDouble(),
|
||||||
doctorTitle = json['DoctorTitle'];
|
doctorTitle: json["DoctorTitle"],
|
||||||
gender = json['Gender'];
|
gender: json["Gender"],
|
||||||
genderDescription = json['GenderDescription'];
|
genderDescription: json["GenderDescription"],
|
||||||
invoiceNoVP = json['InvoiceNo_VP'];
|
invoiceNoVp: json["InvoiceNo_VP"],
|
||||||
isActiveDoctorProfile = json['IsActiveDoctorProfile'];
|
isActiveDoctorProfile: json["IsActiveDoctorProfile"],
|
||||||
isDoctorAllowVedioCall = json['IsDoctorAllowVedioCall'];
|
isDoctorAllowVedioCall: json["IsDoctorAllowVedioCall"],
|
||||||
isExecludeDoctor = json['IsExecludeDoctor'];
|
isExecludeDoctor: json["IsExecludeDoctor"],
|
||||||
noOfPatientsRate = json['NoOfPatientsRate'];
|
noOfPatientsRate: json["NoOfPatientsRate"],
|
||||||
patientName = json['PatientName'];
|
patientName: json["PatientName"],
|
||||||
projectName = json['ProjectName'];
|
projectName: json["ProjectName"],
|
||||||
qR = json['QR'];
|
qr: json["QR"],
|
||||||
vaccinationDate = json['VaccinationDate'];
|
speciality: json["Speciality"] == null ? [] : List<dynamic>.from(json["Speciality"]!.map((x) => x)),
|
||||||
}
|
vaccinationDate: json["VaccinationDate"],
|
||||||
|
);
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() => {
|
||||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
"SetupID": setupId,
|
||||||
data['SetupID'] = this.setupID;
|
"ProjectID": projectId,
|
||||||
data['ProjectID'] = this.projectID;
|
"PatientID": patientId,
|
||||||
data['PatientID'] = this.patientID;
|
"InvoiceNo": invoiceNo,
|
||||||
data['InvoiceNo'] = this.invoiceNo;
|
"ProcedureID": procedureId,
|
||||||
data['ProcedureID'] = this.procedureID;
|
"VaccineName": vaccineName,
|
||||||
data['VaccineName'] = this.vaccineName;
|
"VaccineNameN": vaccineNameN,
|
||||||
data['VaccineNameN'] = this.vaccineNameN;
|
"InvoiceDate": invoiceDate,
|
||||||
data['InvoiceDate'] = this.invoiceDate;
|
"DoctorID": doctorId,
|
||||||
data['DoctorID'] = this.doctorID;
|
"ClinicID": clinicId,
|
||||||
data['ClinicID'] = this.clinicID;
|
"FirstName": firstName,
|
||||||
data['FirstName'] = this.firstName;
|
"MiddleName": middleName,
|
||||||
data['MiddleName'] = this.middleName;
|
"LastName": lastName,
|
||||||
data['LastName'] = this.lastName;
|
"FirstNameN": firstNameN,
|
||||||
data['FirstNameN'] = this.firstNameN;
|
"MiddleNameN": middleNameN,
|
||||||
data['MiddleNameN'] = this.middleNameN;
|
"LastNameN": lastNameN,
|
||||||
data['LastNameN'] = this.lastNameN;
|
"DateofBirth": dateofBirth,
|
||||||
data['DateofBirth'] = this.dateofBirth;
|
"ActualDoctorRate": actualDoctorRate,
|
||||||
data['ActualDoctorRate'] = this.actualDoctorRate;
|
"Age": age,
|
||||||
data['Age'] = this.age;
|
"ClinicName": clinicName,
|
||||||
data['ClinicName'] = this.clinicName;
|
"DecimalDoctorRate": decimalDoctorRate,
|
||||||
data['DecimalDoctorRate'] = this.decimalDoctorRate;
|
"DoctorImageURL": doctorImageUrl,
|
||||||
data['DoctorImageURL'] = this.doctorImageURL;
|
"DoctorName": doctorName,
|
||||||
data['DoctorName'] = this.doctorName;
|
"DoctorRate": doctorRate,
|
||||||
data['DoctorRate'] = this.doctorRate;
|
"DoctorStarsRate": doctorStarsRate,
|
||||||
data['DoctorStarsRate'] = this.doctorStarsRate;
|
"DoctorTitle": doctorTitle,
|
||||||
data['DoctorTitle'] = this.doctorTitle;
|
"Gender": gender,
|
||||||
data['Gender'] = this.gender;
|
"GenderDescription": genderDescription,
|
||||||
data['GenderDescription'] = this.genderDescription;
|
"InvoiceNo_VP": invoiceNoVp,
|
||||||
data['InvoiceNo_VP'] = this.invoiceNoVP;
|
"IsActiveDoctorProfile": isActiveDoctorProfile,
|
||||||
data['IsActiveDoctorProfile'] = this.isActiveDoctorProfile;
|
"IsDoctorAllowVedioCall": isDoctorAllowVedioCall,
|
||||||
data['IsDoctorAllowVedioCall'] = this.isDoctorAllowVedioCall;
|
"IsExecludeDoctor": isExecludeDoctor,
|
||||||
data['IsExecludeDoctor'] = this.isExecludeDoctor;
|
"NoOfPatientsRate": noOfPatientsRate,
|
||||||
data['NoOfPatientsRate'] = this.noOfPatientsRate;
|
"PatientName": patientName,
|
||||||
data['PatientName'] = this.patientName;
|
"ProjectName": projectName,
|
||||||
data['ProjectName'] = this.projectName;
|
"QR": qr,
|
||||||
data['QR'] = this.qR;
|
"Speciality": speciality == null ? [] : List<dynamic>.from(speciality!.map((x) => x)),
|
||||||
data['VaccinationDate'] = this.vaccinationDate;
|
"VaccinationDate": vaccinationDate,
|
||||||
return data;
|
};
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,75 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:hmg_patient_app_new/core/utils/size_utils.dart';
|
||||||
|
import 'package:hmg_patient_app_new/core/utils/utils.dart';
|
||||||
|
import 'package:hmg_patient_app_new/extensions/string_extensions.dart';
|
||||||
|
import 'package:hmg_patient_app_new/extensions/widget_extensions.dart';
|
||||||
|
import 'package:hmg_patient_app_new/theme/colors.dart';
|
||||||
|
|
||||||
|
class HealthToolsCard extends StatelessWidget {
|
||||||
|
final String label;
|
||||||
|
final Color textColor;
|
||||||
|
final String svgIcon;
|
||||||
|
final double? iconSize;
|
||||||
|
final Color? iconColor;
|
||||||
|
|
||||||
|
const HealthToolsCard({
|
||||||
|
super.key,
|
||||||
|
required this.label,
|
||||||
|
required this.textColor,
|
||||||
|
required this.svgIcon,
|
||||||
|
this.iconSize,
|
||||||
|
this.iconColor,
|
||||||
|
});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
final iconS = iconSize ?? 24.w;
|
||||||
|
|
||||||
|
return Container(
|
||||||
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
|
||||||
|
color: AppColors.whiteColor,
|
||||||
|
borderRadius: 20.r,
|
||||||
|
hasShadow: false,
|
||||||
|
),
|
||||||
|
padding: EdgeInsets.all(12.w),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
children: [
|
||||||
|
Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
// Icon container with white background and border
|
||||||
|
Container(
|
||||||
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
|
||||||
|
color: AppColors.whiteColor,
|
||||||
|
borderRadius: 12.r,
|
||||||
|
side: BorderSide(
|
||||||
|
color: AppColors.borderOnlyColor.withValues(alpha: 0.1),
|
||||||
|
width: 1,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
height: 48.w,
|
||||||
|
width: 48.w,
|
||||||
|
child: Center(
|
||||||
|
child: Utils.buildSvgWithAssets(
|
||||||
|
icon: svgIcon,
|
||||||
|
width: iconS,
|
||||||
|
height: iconS,
|
||||||
|
fit: BoxFit.contain,
|
||||||
|
applyThemeColor: false,
|
||||||
|
iconColor: iconColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
SizedBox(height: 6.h),
|
||||||
|
label.toText13(color: textColor, isBold: true, maxLine: 2),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@ -0,0 +1,86 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:hmg_patient_app_new/core/app_assets.dart';
|
||||||
|
import 'package:hmg_patient_app_new/core/app_state.dart';
|
||||||
|
import 'package:hmg_patient_app_new/core/dependencies.dart';
|
||||||
|
import 'package:hmg_patient_app_new/core/utils/size_utils.dart';
|
||||||
|
import 'package:hmg_patient_app_new/core/utils/utils.dart';
|
||||||
|
import 'package:hmg_patient_app_new/extensions/string_extensions.dart';
|
||||||
|
import 'package:hmg_patient_app_new/extensions/widget_extensions.dart';
|
||||||
|
import 'package:hmg_patient_app_new/theme/colors.dart';
|
||||||
|
|
||||||
|
class HealthTrackerMenuCard extends StatelessWidget {
|
||||||
|
final String label;
|
||||||
|
final Color textColor;
|
||||||
|
final Color backgroundColor;
|
||||||
|
final String svgIcon;
|
||||||
|
final double? iconSize;
|
||||||
|
final Color? iconColor;
|
||||||
|
final Color iconBgColor;
|
||||||
|
|
||||||
|
const HealthTrackerMenuCard({
|
||||||
|
super.key,
|
||||||
|
required this.label,
|
||||||
|
required this.textColor,
|
||||||
|
required this.backgroundColor,
|
||||||
|
required this.svgIcon,
|
||||||
|
required this.iconBgColor,
|
||||||
|
this.iconSize,
|
||||||
|
this.iconColor,
|
||||||
|
});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
final iconS = iconSize ?? 22.w;
|
||||||
|
return Container(
|
||||||
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
|
||||||
|
color: backgroundColor,
|
||||||
|
borderRadius: 20.r,
|
||||||
|
hasShadow: false
|
||||||
|
),
|
||||||
|
padding: EdgeInsets.all(16.w),
|
||||||
|
child: Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
|
||||||
|
color: iconBgColor,
|
||||||
|
borderRadius: 10.r
|
||||||
|
),
|
||||||
|
height: 40.w,
|
||||||
|
width: 40.w,
|
||||||
|
child: Utils.buildSvgWithAssets(
|
||||||
|
icon: svgIcon,
|
||||||
|
fit: BoxFit.none,
|
||||||
|
height: iconS,
|
||||||
|
width: iconS,
|
||||||
|
applyThemeColor: false,
|
||||||
|
iconColor: iconColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
SizedBox(width: 12.w),
|
||||||
|
Expanded(
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
label.toText14(color: textColor, isBold: true),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
SizedBox(width: 12.w),
|
||||||
|
Transform.flip(
|
||||||
|
flipX: getIt.get<AppState>().isArabic(),
|
||||||
|
child: Utils.buildSvgWithAssets(
|
||||||
|
icon: AppAssets.arrowRight,
|
||||||
|
width: 24.w,
|
||||||
|
height: 24.h,
|
||||||
|
fit: BoxFit.contain,
|
||||||
|
iconColor: AppColors.textColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Reference in New Issue