A new Flutter package project for Fetching weather information.
Add your api key
If you don't have one, you can get api key by creating account on openweathermap.org
OpenWeather openWeather = OpenWeather("YOUR API KEY");
Get weather by city name
Weather weather = await _openWeather.currentWeatherByCityName(cityName: 'cityName');
Get weather by location ( longitude and latitude )
Weather weather = await _openWeather.currentWeatherByLocation(latitude: 'latitude', longitude: 'longitude');