fix header

merge-requests/744/head
Elham Rababah 5 years ago
parent b4305a00ae
commit 78903043d9

@ -40,7 +40,7 @@ class _LaboratoryResultPageState extends State<LaboratoryResultPage> {
isShowAppBar: true, isShowAppBar: true,
appBar: PatientProfileAppBar( appBar: PatientProfileAppBar(
widget.patient, widget.patient,
isInpatient:widget.isInpatient,
isFromLabResult: true, isFromLabResult: true,
appointmentDate: widget.patientLabOrders.orderDate, appointmentDate: widget.patientLabOrders.orderDate,
), ),

@ -54,7 +54,6 @@ class _LabsHomePageState extends State<LabsHomePage> {
isShowAppBar: true, isShowAppBar: true,
appBar: PatientProfileAppBar( appBar: PatientProfileAppBar(
patient, patient,
isInpatient: isInpatient, isInpatient: isInpatient,
), ),
body: SingleChildScrollView( body: SingleChildScrollView(

@ -551,6 +551,6 @@ class PatientProfileAppBar extends StatelessWidget
@override @override
Size get preferredSize => Size get preferredSize =>
Size(double.maxFinite, height == 0 Size(double.maxFinite, height == 0
? isInpatient ? 160 : isAppointmentHeader ? 290 : 170 ? isInpatient ? (isFromLabResult?170:175) : isAppointmentHeader ? 290 : 175
: height); : height);
} }

Loading…
Cancel
Save