fix scrolling in patient screen

merge-requests/611/head
Elham Rababah 5 years ago
parent acb1bdbb37
commit 72bf5d2337

@ -81,8 +81,7 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>with SingleT
appBarTitle: TranslationBase.of(context).patientProfile, appBarTitle: TranslationBase.of(context).patientProfile,
isShowAppBar: false,//TODO fix button location isShowAppBar: false,//TODO fix button location
// appBar: PatientProfileHeaderNewDesignAppBar(patient,arrivalType??'0',patientType,isInpatient: isInpatient,), // appBar: PatientProfileHeaderNewDesignAppBar(patient,arrivalType??'0',patientType,isInpatient: isInpatient,),
body: SingleChildScrollView( body: Container(
child: Container(
child: Column( child: Column(
children: [ children: [
Stack( Stack(
@ -99,6 +98,11 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>with SingleT
? 210 ? 210
: 0, : 0,
), ),
SingleChildScrollView(
child: Container(
height: MediaQuery.of(context).size.height *0.65,
child: ListView(
children: [
Container( Container(
child: isFromSearch child: isFromSearch
? Column( ? Column(
@ -690,6 +694,10 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>with SingleT
), ),
], ],
), ),
),
),
],
),
if (patient.patientStatusType != null && if (patient.patientStatusType != null &&
patient.patientStatusType == 43) patient.patientStatusType == 43)
@ -782,7 +790,6 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>with SingleT
], ],
), ),
), ),
),
)); ));
} }

@ -39,7 +39,7 @@ class PatientProfileHeaderNewDesignAppBar extends StatelessWidget
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
), ),
height: height == 0 ? isInpatient? 235:200 : height, height: height == 0 ? isInpatient? 210:200 : height,
child: Container( child: Container(
padding: EdgeInsets.only(left: 10, right: 10, bottom: 10), padding: EdgeInsets.only(left: 10, right: 10, bottom: 10),
margin: EdgeInsets.only(top: 50), margin: EdgeInsets.only(top: 50),

Loading…
Cancel
Save