diff --git a/lib/fetcher.dart b/lib/fetcher.dart index 94a3d26..288367f 100644 --- a/lib/fetcher.dart +++ b/lib/fetcher.dart @@ -17,6 +17,15 @@ class _FetchAPIState extends State { 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,