Reversing fetched list (New to Old)
This commit is contained in:
@@ -17,6 +17,15 @@ class _FetchAPIState extends State<FetchAPI> {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text("Fetching API"),
|
||||
actions: [
|
||||
IconButton(
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
fetchedArrivals = fetchArrivals();
|
||||
});
|
||||
},
|
||||
icon: const Icon(Icons.refresh_rounded))
|
||||
],
|
||||
),
|
||||
body: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
|
||||
Reference in New Issue
Block a user