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(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
Text('couldn\'t load Journeys'),
|
Text('couldn\'t load Journeys'),
|
||||||
// ElevatedButton(
|
ElevatedButton(
|
||||||
// onPressed: () {
|
onPressed: () {
|
||||||
// Future.delayed(Duration(milliseconds: 300));
|
Future.delayed(Duration(milliseconds: 300));
|
||||||
// setState(() {});
|
setState(() {});
|
||||||
// },
|
},
|
||||||
// child: const Text('retry'),
|
child: const Text('retry'),
|
||||||
// ),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -570,13 +570,13 @@ class _JourneyOverviewPageState extends State<JourneyOverviewPage> {
|
|||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
Text('No journeys found'),
|
Text('No journeys found'),
|
||||||
// ElevatedButton(
|
ElevatedButton(
|
||||||
// onPressed: () {
|
onPressed: () {
|
||||||
// Future.delayed(Duration(milliseconds: 300));
|
Future.delayed(Duration(milliseconds: 300));
|
||||||
// setState(() {});
|
setState(() {});
|
||||||
// },
|
},
|
||||||
// child: const Text('retry'),
|
child: const Text('retry'),
|
||||||
// ),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user