fix profile height size

merge-requests/737/head
Elham Rababah 5 years ago
parent 411746da98
commit 161cb1e872

@ -5,8 +5,8 @@ const ONLY_NUMBERS = "[0-9]";
const ONLY_LETTERS = "[a-zA-Z &'\"]";
const ONLY_DATE = "[0-9/]";
const BASE_URL_LIVE_CARE = 'https://livecare.hmg.com/';
const BASE_URL = 'https://hmgwebservices.com/';
// const BASE_URL = 'https://uat.hmgwebservices.com/';
// const BASE_URL = 'https://hmgwebservices.com/';
const BASE_URL = 'https://uat.hmgwebservices.com/';
const PHARMACY_ITEMS_URL = "Services/Lists.svc/REST/GetPharmcyItems_Region_enh";
const PHARMACY_LIST_URL = "Services/Patients.svc/REST/GetPharmcyList";
const PATIENT_PROGRESS_NOTE_URL = "Services/DoctorApplication.svc/REST/GetProgressNoteForInPatient";

@ -105,6 +105,7 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>
PatientProfileAppBar(
patient,
isFromLiveCare: isFromLiveCare,
isInpatient: isInpatient,
height: (patient.patientStatusType != null &&
patient.patientStatusType == 43)
? 220

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

Loading…
Cancel
Save