show more days of forecast, enable reload of forecasts
This commit is contained in:
@@ -4,6 +4,10 @@ import 'dart:math';
|
||||
class DailyWeatherModel {
|
||||
late List<HourlyWeatherModel> hourlyForecasts;
|
||||
|
||||
DateTime dateOfDay() {
|
||||
return hourlyForecasts[0].timestamp.toLocal();
|
||||
}
|
||||
|
||||
DailyWeatherModel.fromJson(Map<String, dynamic> json) {
|
||||
List dataPoints = json['weather'];
|
||||
hourlyForecasts = [];
|
||||
|
||||
Reference in New Issue
Block a user