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, patient: patient,
isFromLiveCare: isFromLiveCare, isFromLiveCare: isFromLiveCare,
isInpatient: isInpatient, isInpatient: isInpatient,
height: (patient.patientStatusType != null && // height: (patient.patientStatusType != null &&
patient.patientStatusType == 43) // patient.patientStatusType == 43)
? 220 // ? 220
: isDischargedPatient // : isDischargedPatient
? 240 // ? 240
: 0, // : 0,
isDischargedPatient: isDischargedPatient), isDischargedPatient: isDischargedPatient),
), ),
Container( Container(

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

Loading…
Cancel
Save