File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ class BusStopList extends _$BusStopList {
102102 }
103103
104104 Future <void > fetchFromApi () async {
105- final busStopList = await ref.read (apiBusStopListProvider.future);
105+ final busStopList = await ref.refresh (apiBusStopListProvider.future);
106106
107107 await _cacheBusStops (busStopList);
108108
Original file line number Diff line number Diff line change @@ -30,14 +30,15 @@ class _FetchDataPageState extends ConsumerState<FetchDataPage> {
3030 );
3131 } else {
3232 return FetchDataPage2 (
33- isSetup: widget.isSetup,
34- onFinish: () {
35- if (Navigator .canPop (context)) {
36- Navigator .pop (context);
37- } else {
38- SavedRoute ().go (context);
39- }
40- });
33+ isSetup: widget.isSetup,
34+ onFinish: () {
35+ if (widget.isSetup) {
36+ SavedRoute ().go (context);
37+ } else {
38+ Navigator .pop (context);
39+ }
40+ },
41+ );
4142 }
4243 }
4344}
You can’t perform that action at this time.
0 commit comments