This commit is contained in:
Mohamed Nouffer
2022-07-28 19:01:45 +05:30
parent 16cf0e1434
commit a4adf24e99
6 changed files with 53 additions and 17 deletions

View File

@ -42,6 +42,8 @@ class IndexController extends GetxController {
var is_mapController_loaded = false.obs;
var is_rog_mapcontroller_loaded = false.obs;
var is_custom_area_selected = false.obs;
MapController? mapController;
MapController? rogMapController;
@ -385,6 +387,9 @@ void login(String email, String password, BuildContext context){
}
void loadLocationsBound(){
if(is_custom_area_selected.value == true){
return;
}
String cat = currentCat.isNotEmpty ? currentCat[0] : "";
LatLngBounds bounds = mapController!.bounds!;
currentBound.clear();