issue fix for the projects having distance not found if the permission for the application

changes
tahaalam 1 day ago
parent 50c49ffb01
commit ebfefefec0

@ -274,7 +274,6 @@ class EmergencyServicesViewModel extends ChangeNotifier {
void navigateTOAmbulancePage() { void navigateTOAmbulancePage() {
placeValueInController(); placeValueInController();
getProjects();
flushData(); flushData();
selectedFacility = FacilitySelection.ALL; selectedFacility = FacilitySelection.ALL;
@ -282,6 +281,7 @@ class EmergencyServicesViewModel extends ChangeNotifier {
locationUtils!.getLocation( locationUtils!.getLocation(
isShowConfirmDialog: true, isShowConfirmDialog: true,
onSuccess: (position) { onSuccess: (position) {
getProjects();
updateBottomSheetState(BottomSheetType.FIXED); updateBottomSheetState(BottomSheetType.FIXED);
navServices.push( navServices.push(
CustomPageRoute(page: CallAmbulancePage(), direction: AxisDirection.down), CustomPageRoute(page: CallAmbulancePage(), direction: AxisDirection.down),

Loading…
Cancel
Save