|
|
|
|
@ -75,13 +75,13 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
height: height == 0
|
|
|
|
|
? isInpatient
|
|
|
|
|
? 215
|
|
|
|
|
: isAppointmentHeader
|
|
|
|
|
? 325
|
|
|
|
|
: 200
|
|
|
|
|
: height,
|
|
|
|
|
// height: height == 0
|
|
|
|
|
// ? isInpatient
|
|
|
|
|
// ? 215
|
|
|
|
|
// : isAppointmentHeader
|
|
|
|
|
// ? 325
|
|
|
|
|
// : 200
|
|
|
|
|
// : height,
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: EdgeInsets.only(left: 10, right: 10, bottom: 10),
|
|
|
|
|
margin: EdgeInsets.only(top: 50),
|
|
|
|
|
@ -324,10 +324,11 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if(isInpatient)
|
|
|
|
|
// if(isInpatient)
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
if(patient.admissionDate != null && patient.admissionDate.isNotEmpty)
|
|
|
|
|
Container(
|
|
|
|
|
child: RichText(
|
|
|
|
|
text: new TextSpan(
|
|
|
|
|
@ -547,6 +548,6 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
@override
|
|
|
|
|
Size get preferredSize =>
|
|
|
|
|
Size(double.maxFinite, height == 0
|
|
|
|
|
? isInpatient ? 215 : isAppointmentHeader ? 325 : 200
|
|
|
|
|
? isInpatient ? 160 : isAppointmentHeader ? 290 : 160
|
|
|
|
|
: height);
|
|
|
|
|
}
|
|
|
|
|
|