REFRESH BUTTON

This commit is contained in:
2023-12-27 16:46:03 +02:00
parent c416011864
commit c9f990e7fd

View File

@@ -15,7 +15,7 @@ Future<List<Arrival>> fetchArrivals() async {
// })); // }));
Iterable I = json.decode(response.body); Iterable I = json.decode(response.body);
List<Arrival> arrivals = List<Arrival>.from(I.map((model)=>Arrival.fromJson(model))); List<Arrival> arrivals = List<Arrival>.from(I.map((model)=>Arrival.fromJson(model)));
return arrivals; return arrivals.reversed.toList();
} else { } else {
throw Exception('Failed to load Arrival'); throw Exception('Failed to load Arrival');
} }