fix height patient app header

merge-requests/738/head
Elham Rababah 5 years ago
parent 6fd9af9b26
commit 9328724167

@ -108,12 +108,12 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>
patient: patient,
isFromLiveCare: isFromLiveCare,
isInpatient: isInpatient,
height: (patient.patientStatusType != null &&
patient.patientStatusType == 43)
? 220
: isDischargedPatient
? 240
: 0,
// height: (patient.patientStatusType != null &&
// patient.patientStatusType == 43)
// ? 220
// : isDischargedPatient
// ? 240
// : 0,
isDischargedPatient: isDischargedPatient),
),
Container(

@ -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);
}

Loading…
Cancel
Save