|
|
|
@ -55,8 +55,9 @@ class _SearchByHospitalState extends State<SearchByHospital> {
|
|
|
|
void initState() {
|
|
|
|
void initState() {
|
|
|
|
locationUtils =
|
|
|
|
locationUtils =
|
|
|
|
new LocationUtils(isShowConfirmDialog: true, context: context);
|
|
|
|
new LocationUtils(isShowConfirmDialog: true, context: context);
|
|
|
|
locationUtils.getCurrentLocation();
|
|
|
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
|
|
WidgetsBinding.instance.addPostFrameCallback((_) => getProjectsList());
|
|
|
|
getProjectsList();
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
@ -271,11 +272,13 @@ class _SearchByHospitalState extends State<SearchByHospital> {
|
|
|
|
projectsList = projectsListLocal;
|
|
|
|
projectsList = projectsListLocal;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {}
|
|
|
|
} else {}
|
|
|
|
|
|
|
|
locationUtils.getCurrentLocation();
|
|
|
|
}).catchError((err) {
|
|
|
|
}).catchError((err) {
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
|
|
|
locationUtils.getCurrentLocation();
|
|
|
|
}).catchError((err) {
|
|
|
|
}).catchError((err) {
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
|
|
|
locationUtils.getCurrentLocation();
|
|
|
|
print(err);
|
|
|
|
print(err);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|