File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,8 @@ class FVMScreen extends HookWidget {
18
18
Widget build (BuildContext context) {
19
19
final appReleaseState = useProvider (releasesStateProvider);
20
20
final cachedVersions = appReleaseState.all;
21
- final hasFetchReleasesFinished = appReleaseState.isVersionReleaseFetchFinished;
22
21
23
- if (! hasFetchReleasesFinished ) {
22
+ if (appReleaseState.fetching ) {
24
23
return const Center (child: CircularProgressIndicator ());
25
24
}
26
25
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import '../common/constants.dart';
10
10
import '../fvm/fvm.provider.dart' ;
11
11
12
12
class AppReleasesState {
13
- bool isVersionReleaseFetchFinished ;
13
+ bool fetching ;
14
14
15
15
MasterDto master;
16
16
List <ChannelDto > channels;
@@ -22,7 +22,7 @@ class AppReleasesState {
22
22
this .channels,
23
23
this .versions,
24
24
this .master,
25
- this .isVersionReleaseFetchFinished = false ,
25
+ this .fetching = true ,
26
26
this .hasGlobal = false ,
27
27
}) {
28
28
channels = < ChannelDto > [];
@@ -71,7 +71,7 @@ final releasesStateProvider = Provider<AppReleasesState>((ref) {
71
71
return releasesState;
72
72
}
73
73
74
- releasesState.isVersionReleaseFetchFinished = true ;
74
+ releasesState.fetching = false ;
75
75
76
76
final flutterReleases = payload.releases;
77
77
final flutterChannels = payload.channels;
You can’t perform that action at this time.
0 commit comments