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