|
|
|
|
@ -40,7 +40,7 @@ class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
{ this.patientProfileAppBarModel,
|
|
|
|
|
this.isFromLabResult = false,
|
|
|
|
|
this.onPressed,
|
|
|
|
|
this.height,
|
|
|
|
|
this.height=0,
|
|
|
|
|
this.isInpatient = false,
|
|
|
|
|
this.isDischargedPatient = false,
|
|
|
|
|
this.isFromLiveCare = false,
|
|
|
|
|
@ -55,8 +55,8 @@ class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
this.episode,
|
|
|
|
|
this.visitDate,
|
|
|
|
|
this.clinic,
|
|
|
|
|
this.isAppointmentHeader});
|
|
|
|
|
late PatiantInformtion localPatient;
|
|
|
|
|
this.isAppointmentHeader= false});
|
|
|
|
|
PatiantInformtion? localPatient;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
@ -438,21 +438,36 @@ class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
@override
|
|
|
|
|
Size get preferredSize => Size(
|
|
|
|
|
double.maxFinite,
|
|
|
|
|
patientProfileAppBarModel!.height == 0
|
|
|
|
|
? patientProfileAppBarModel!.isAppointmentHeader!
|
|
|
|
|
? 270
|
|
|
|
|
: ((localPatient!.appointmentDate!.isNotEmpty)
|
|
|
|
|
? patientProfileAppBarModel!.isFromLabResult!
|
|
|
|
|
? 190
|
|
|
|
|
: 170
|
|
|
|
|
: localPatient!.admissionDate != null
|
|
|
|
|
? patientProfileAppBarModel!.isFromLabResult!
|
|
|
|
|
? 190
|
|
|
|
|
: 170
|
|
|
|
|
: patientProfileAppBarModel!.isDischargedPatient!
|
|
|
|
|
? 240
|
|
|
|
|
: 130)
|
|
|
|
|
: patientProfileAppBarModel!.height!);
|
|
|
|
|
height! == 0
|
|
|
|
|
? isInpatient
|
|
|
|
|
? (isFromLabResult! ? 210 : 200)
|
|
|
|
|
: isAppointmentHeader!
|
|
|
|
|
? 290
|
|
|
|
|
: SizeConfig.isHeightVeryShort
|
|
|
|
|
? 137
|
|
|
|
|
: SizeConfig.isHeightShort
|
|
|
|
|
? 190
|
|
|
|
|
: SizeConfig.heightMultiplier *
|
|
|
|
|
(SizeConfig.isWidthLarge ? 25 : 20)
|
|
|
|
|
: height!
|
|
|
|
|
// TODO Elham*2
|
|
|
|
|
// patientProfileAppBarModel!.height == 0
|
|
|
|
|
// ? patientProfileAppBarModel!.isAppointmentHeader!
|
|
|
|
|
// ? 270
|
|
|
|
|
// : ((localPatient!.appointmentDate!.isNotEmpty)
|
|
|
|
|
// ? patientProfileAppBarModel!.isFromLabResult!
|
|
|
|
|
// ? 190
|
|
|
|
|
// : 170
|
|
|
|
|
// : localPatient!.admissionDate != null
|
|
|
|
|
// ? patientProfileAppBarModel!.isFromLabResult!
|
|
|
|
|
// ? 190
|
|
|
|
|
// : 170
|
|
|
|
|
// : patientProfileAppBarModel!.isDischargedPatient!
|
|
|
|
|
// ? 240
|
|
|
|
|
// : 130)
|
|
|
|
|
// : patientProfileAppBarModel!.height!
|
|
|
|
|
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class HeaderRow extends StatelessWidget {
|
|
|
|
|
|