This commit is contained in:
Hamza-Ayed
2024-06-22 13:12:35 +03:00
parent 1cc0156cfd
commit 3c5321f70b
67 changed files with 91 additions and 740 deletions

View File

@@ -25,7 +25,6 @@ class PointsForRiderController extends GetxController {
}
void removeLocation(int index) {
print(index);
locations.removeAt(index);
update();
}
@@ -95,25 +94,18 @@ class WayPointController extends GetxController {
}
void updatePlace(int index, String input) async {
print(myLocation);
print(index);
print(input);
var url =
'${AppLink.googleMapsLink}place/nearbysearch/json?keyword=$input&location=${myLocation.latitude},${myLocation.longitude}&radius=50000&language=en&key=${AK.mapAPIKEY.toString()}';
print(url);
var response = await CRUD().getGoogleApi(link: url, payload: {});
// final place = input;
// print(response);
// if (index == 0) {
List<dynamic> newList = [];
placeListResponse.add(newList);
newList = response['results'];
print(newList);
placeListResponse[index].add(newList);
update();
// }
print(placeListResponse[index]);
update();
}