fix select clinic

merge-requests/831/head
Elham Rababh 5 years ago
parent 5e90f14a89
commit c74dca1404

@ -64,6 +64,7 @@ class _InPatientListPageState extends State<InPatientListPage> {
setState(() { setState(() {
isAllClinic = true; isAllClinic = true;
showBottomSheet = false; showBottomSheet = false;
selectedClinicName = null;
}); });
widget.patientSearchViewModel widget.patientSearchViewModel
.setDefaultInPatientList(); .setDefaultInPatientList();
@ -80,6 +81,7 @@ class _InPatientListPageState extends State<InPatientListPage> {
onTap: () { onTap: () {
setState(() { setState(() {
isAllClinic = true; isAllClinic = true;
selectedClinicName = null;
showBottomSheet = false; showBottomSheet = false;
}); });
widget.patientSearchViewModel.setDefaultInPatientList(); widget.patientSearchViewModel.setDefaultInPatientList();
@ -88,7 +90,7 @@ class _InPatientListPageState extends State<InPatientListPage> {
InkWell( InkWell(
onTap: () { onTap: () {
setState(() { setState(() {
isAllClinic = false;
if (widget.patientSearchViewModel.InpatientClinicList if (widget.patientSearchViewModel.InpatientClinicList
.length > .length >
0) showBottomSheet = true; 0) showBottomSheet = true;
@ -102,7 +104,6 @@ class _InPatientListPageState extends State<InPatientListPage> {
onChanged: (value) { onChanged: (value) {
setState(() { setState(() {
setState(() { setState(() {
isAllClinic = false;
if (widget.patientSearchViewModel if (widget.patientSearchViewModel
.InpatientClinicList.length > .InpatientClinicList.length >
0) showBottomSheet = true; 0) showBottomSheet = true;

Loading…
Cancel
Save