|
|
|
|
@ -574,10 +574,14 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
Size get preferredSize => Size(
|
|
|
|
|
double.maxFinite,
|
|
|
|
|
patientProfileAppBarModel.height == 0
|
|
|
|
|
? patientProfileAppBarModel.isInpatient
|
|
|
|
|
? 160
|
|
|
|
|
: patientProfileAppBarModel.isAppointmentHeader
|
|
|
|
|
? 290
|
|
|
|
|
: 170
|
|
|
|
|
? patientProfileAppBarModel.isAppointmentHeader
|
|
|
|
|
? 270
|
|
|
|
|
: ((patientProfileAppBarModel.patient.appointmentDate != null &&patientProfileAppBarModel.patient.appointmentDate.isNotEmpty )
|
|
|
|
|
? patientProfileAppBarModel.isFromLabResult?170:150
|
|
|
|
|
: patientProfileAppBarModel.patient.admissionDate != null
|
|
|
|
|
? 150
|
|
|
|
|
: patientProfileAppBarModel.isDischargedPatient
|
|
|
|
|
? 240
|
|
|
|
|
: 130)
|
|
|
|
|
: patientProfileAppBarModel.height);
|
|
|
|
|
}
|
|
|
|
|
|