Public Access
feat(ui): add retry button if journeys can't be loaded
This commit is contained in:
+14
-14
@@ -556,13 +556,13 @@ class _JourneyOverviewPageState extends State<JourneyOverviewPage> {
|
||||
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<JourneyOverviewPage> {
|
||||
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'),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user