From f8aa117c28e970c5063084623ea302d1b43c2fa4 Mon Sep 17 00:00:00 2001 From: fbachus Date: Thu, 30 Jul 2026 19:27:01 +0200 Subject: [PATCH] feat(ui): add retry button if journeys can't be loaded --- lib/main.dart | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 6b88ef3..b40a89b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -556,13 +556,13 @@ class _JourneyOverviewPageState extends State { return Column( children: [ Text('couldn\'t load Journeys'), - // ElevatedButton( - // onPressed: () { - // Future.delayed(Duration(milliseconds: 300)); - // setState(() {}); - // }, - // child: const Text('retry'), - // ), + ElevatedButton( + onPressed: () { + Future.delayed(Duration(milliseconds: 300)); + setState(() {}); + }, + child: const Text('retry'), + ), ], ); } @@ -570,13 +570,13 @@ class _JourneyOverviewPageState extends State { return Column( children: [ Text('No journeys found'), - // ElevatedButton( - // onPressed: () { - // Future.delayed(Duration(milliseconds: 300)); - // setState(() {}); - // }, - // child: const Text('retry'), - // ), + ElevatedButton( + onPressed: () { + Future.delayed(Duration(milliseconds: 300)); + setState(() {}); + }, + child: const Text('retry'), + ), ], ); }