![]() |
Projede http kullanılarak, https://collectapi.com sitesindeki Hava Durumu API'sinden veri çekilmiştir. 7 günlük hava durumu verisi Tabbar kullanılarak ekrana çizilmiştir. Ayarlar sayfasından şehir ve veri dili ayarı yapılabilmektedir fakat şuan o kısmın arkaplanı çalışmıyor. En yakın zamanda eklenecektir.
Using http in the project, data was retrieved from the Weather API on the https://collectapi.com site. 7 days of weather data is drawn on the screen using Tabbar. City and data language settings can be made from the settings page, but the background of that section is not working now. It will be added as soon as possible.
var response = await http.get(
Uri.parse(
'https://api.collectapi.com/weather/getWeather?data.lang=tr&data.city=eskişehir'), //Paste Weather Api url
headers: {
'content-type': 'application/json',
'authorization':
'apikey .........................' //Paste Weather Api apikey
});
![]() |
![]() |
![]() |