@@ -18,10 +18,10 @@ class _ActualPageState extends State<ActualPage> {
18
18
var url;
19
19
20
20
_getPrefs () async {
21
- SharedPreferences prefs = await SharedPreferences .getInstance ();
21
+ SharedPreferences prefs = await SharedPreferences .getInstance ();
22
22
setState (() {
23
23
tableThemeInt = prefs.getInt ('tableThemeInt' );
24
- url = baseUrl+ tableThemeInt.toString ();
24
+ url = baseUrl + tableThemeInt.toString ();
25
25
print (url);
26
26
_isLoading = false ;
27
27
});
@@ -51,34 +51,31 @@ class _ActualPageState extends State<ActualPage> {
51
51
@override
52
52
Widget build (BuildContext context) {
53
53
return Scaffold (
54
- appBar: PreferredSize (
55
- preferredSize: Size .fromHeight (0.0 ),
56
- child: AppBar (backgroundColor: Colors .black)),
54
+ appBar: PreferredSize (preferredSize: Size .fromHeight (0.0 ), child: AppBar (backgroundColor: Colors .black)),
57
55
body: _networkStatus
58
- ? _isLoading ? CircularProgressIndicator () : WebviewScaffold (
59
- url: url,
60
- geolocationEnabled: true ,
61
- )
56
+ ? _isLoading
57
+ ? CircularProgressIndicator ()
58
+ : WebviewScaffold (
59
+ url: url,
60
+ geolocationEnabled: true ,
61
+ )
62
62
: Center (
63
- child: Padding (
64
- padding: EdgeInsets .only (top: 300.0 ),
65
- child: Column (children: < Widget > [
66
- Icon (
67
- Icons .signal_cellular_off,
68
- size: 200.0 ,
69
- color: Colors .grey[300 ],
70
- ),
71
- Text (
72
- AppLocalizations .of (context).noConnectionNearMe,
73
- style: TextStyle (color: Colors .grey[500 ]),
74
- ),
75
- RaisedButton (
76
- child: Text (AppLocalizations .of (context).retryBtn),
77
- onPressed: () {
78
- _checkNetworkStatus ();
79
- }),
80
- ]),
81
- ),
63
+ child: Column (mainAxisAlignment: MainAxisAlignment .center, crossAxisAlignment: CrossAxisAlignment .center, children: < Widget > [
64
+ Icon (
65
+ Icons .signal_cellular_off,
66
+ size: 150.0 ,
67
+ color: Colors .grey[300 ],
68
+ ),
69
+ Text (
70
+ AppLocalizations .of (context).noConnectionNearMe,
71
+ style: TextStyle (color: Colors .grey[500 ]),
72
+ ),
73
+ RaisedButton (
74
+ child: Text (AppLocalizations .of (context).retryBtn),
75
+ onPressed: () {
76
+ _checkNetworkStatus ();
77
+ }),
78
+ ]),
82
79
),
83
80
);
84
81
}
0 commit comments