File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
packages/flutter/example/lib/live_list Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -49,19 +49,24 @@ class _MyAppState extends State<MyApp> {
49
49
height: double .infinity,
50
50
alignment: Alignment .center,
51
51
child: initFailed == null
52
- ? Column (
53
- mainAxisAlignment: MainAxisAlignment .center,
54
- children: < Widget > [
55
- CircularProgressIndicator (),
56
- Text ('Connecting to the server...' ),
57
- ],
58
- )
52
+ ? _buildLoading ()
59
53
: const Text ('Connecting to the server failed!' ),
60
54
),
61
55
),
62
56
);
63
57
}
64
58
59
+ Column _buildLoading () {
60
+ // ignore: prefer_const_constructors
61
+ return Column (
62
+ mainAxisAlignment: MainAxisAlignment .center,
63
+ children: const [
64
+ CircularProgressIndicator (),
65
+ Text ('Connecting to the server...' ),
66
+ ],
67
+ );
68
+ }
69
+
65
70
Future <bool > initData () async {
66
71
await Parse ().initialize (keyParseApplicationId, keyParseServerUrl,
67
72
clientKey: keyParseClientKey,
You can’t perform that action at this time.
0 commit comments