|
|
|
|
@ -48,8 +48,9 @@ class _InPatientListPageState extends State<InPatientListPage> {
|
|
|
|
|
body: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
if(!widget.isMyInPatient)
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(left: 10.0,right: 10, top: 10),
|
|
|
|
|
margin: EdgeInsets.only(left: 10.0, right: 10, top: 10),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
@ -120,7 +121,7 @@ class _InPatientListPageState extends State<InPatientListPage> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(left: 16, right: 16, bottom: 16, top:5),
|
|
|
|
|
margin: EdgeInsets.only(left: 16, right: 16, bottom: 16, top: 5),
|
|
|
|
|
child: Stack(
|
|
|
|
|
children: [
|
|
|
|
|
AppTextFieldCustom(
|
|
|
|
|
@ -155,8 +156,8 @@ class _InPatientListPageState extends State<InPatientListPage> {
|
|
|
|
|
// padding: EdgeInsets.only(bottom: 30),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
widget.patientSearchViewModel
|
|
|
|
|
.sortInPatient(isDes: isSortDes, isAllClinic:isAllClinic);
|
|
|
|
|
widget.patientSearchViewModel.sortInPatient(
|
|
|
|
|
isDes: isSortDes, isAllClinic: isAllClinic);
|
|
|
|
|
isSortDes = !isSortDes;
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
},
|
|
|
|
|
@ -286,11 +287,19 @@ class _InPatientListPageState extends State<InPatientListPage> {
|
|
|
|
|
}),
|
|
|
|
|
onNotification: (t) {
|
|
|
|
|
if (isAllClinic && !hasQuery) if (t
|
|
|
|
|
is ScrollUpdateNotification &&
|
|
|
|
|
t.metrics.pixels >=
|
|
|
|
|
t.metrics.maxScrollExtent - 50) {
|
|
|
|
|
widget.patientSearchViewModel
|
|
|
|
|
.addOnFilteredList();
|
|
|
|
|
is ScrollUpdateNotification) {
|
|
|
|
|
if (t.metrics.pixels >=
|
|
|
|
|
t.metrics.maxScrollExtent - 50) {
|
|
|
|
|
widget.patientSearchViewModel
|
|
|
|
|
.addOnFilteredList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (t.metrics.pixels <=
|
|
|
|
|
t.metrics.minScrollExtent - 50) {
|
|
|
|
|
widget.patientSearchViewModel
|
|
|
|
|
.removeOnFilteredList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
|
},
|
|
|
|
|
|