When I am trying to print the url it is getting printed. but http statement and lines after it are not getting executed.
print('https://maps.googleapis.com/maps/api/place/autocomplete/json?'
'input=$cityName&location=${position.latitude},${position.longitude}&radius=50000&language=en&components=country:in&key=$kGoogleApiKey');
// Url is getting printed
// but next line is not getting executed.
http.Response response = await http.get(
Uri.parse('https://maps.googleapis.com/maps/api/place/autocomplete/json?'
'input=$cityName&location=${position.latitude},${position.longitude}&radius=50000&language=en&components=country:in&key=$kGoogleApiKey')
);
print("address ${response.body}");
I tried printing the response but nothing is printed. On android it is getting executed but on web application it is not getting executed.