weather_api_flutter 0.0.1
A Package that can fetch data from https://api.openweathermap.org . it will be return weather info of city like temp,humidity etc.
weather_api_flutter
A Package that can fetch data from https://api.openweathermap.org . it will be return weather info of city like temp,humidity etc.
Getting Started
To run or use this package you'll need to first get an API key from https://api.openweathermap.org.
Now import it
How to Use
Create a object of Weather class and pass API KEY and city name.
Weather client = new Weather("KEY", "CITYNAME");
Get details
print("Cityname : ${client.name}"); // print Title of the movie
print("Country: ${client.sys.country}"); //print Released Date
print("Latitude : ${client.coord.lat}"); //runtime
print("longitude : ${client.coord.lon}"); //URL of poster
print("Status :${client.weather[0].main} "); //Director
print("Description :${client.weather[0].description} ");
print("Temp :${client.main.temp} ");
print("FeelsLike :${client.main.feelsLike} ");
print("Temp Min :${client.main.tempMin} ");
print("Temp Max :${client.main.tempMax} ");
print("Pressure:${client.main.pressure} ");
print("Humidity :${client.main.humidity} ");
print("Speed :${client.wind.speed} ");
print("Deg :${client.wind.deg} ");
Created By Jay Prajapati