Slider in settings to adjust days of forecast loaded. Settings are saved and loaded
This commit is contained in:
@@ -17,7 +17,8 @@ class BrightSkyAPI {
|
||||
}
|
||||
|
||||
static Future<List<DailyWeatherModel>> fetchForecastForTimeRange(
|
||||
DateTime from, DateTime until) async {
|
||||
DateTime from, int noOfDays) async {
|
||||
DateTime until = from.add(Duration(days: noOfDays));
|
||||
String fromDay = "${from.year}-${from.month}-${from.day}";
|
||||
String untilDay = "${until.year}-${until.month}-${until.day}";
|
||||
final response = await http.get(
|
||||
|
||||
Reference in New Issue
Block a user