Open shaishalevss opened 4 years ago
I was able to fix that.
Can you tell me how did you fix it?
How did you fix the issue?
same problem
@azinmapar , @shaishalevss , @brobert04 You should try this in your network helper class [ decode response body by json converter ]
It also shows me the default location(of the android emulator), but I noticed in the console that I get this error: E/flutter (19578): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: NoSuchMethodError: Class 'Future' has no instance method '[]'.
E/flutter (19578): Receiver: Instance of 'Future'
E/flutter (19578): Tried calling:
this is my getCityWeather method: Future getCityWeather(String cityName) async {
NetworkHelper networkHelper = NetworkHelper('$openWeatherMapURL?q=$cityName&appid=$apiKey&units=metric');
var weatherData = await networkHelper.getData();
return weatherData;
}
please help me, I really want to finish this project already.