@@ -117,28 +117,30 @@ class CommonUtils {
117117 context: context,
118118 builder: (BuildContext context) {
119119 return new Material (
120- color: Colors .transparent,
121- child: Center (
122- child: new Container (
123- width: 200.0 ,
124- height: 200.0 ,
125- padding: new EdgeInsets .all (4.0 ),
126- decoration: new BoxDecoration (
127- color: Colors .transparent,
128- //用一个BoxDecoration装饰器提供背景图片
129- borderRadius: BorderRadius .all (Radius .circular (4.0 )),
120+ color: Colors .transparent,
121+ child: WillPopScope (
122+ onWillPop: () => new Future .value (false ),
123+ child: Center (
124+ child: new Container (
125+ width: 200.0 ,
126+ height: 200.0 ,
127+ padding: new EdgeInsets .all (4.0 ),
128+ decoration: new BoxDecoration (
129+ color: Colors .transparent,
130+ //用一个BoxDecoration装饰器提供背景图片
131+ borderRadius: BorderRadius .all (Radius .circular (4.0 )),
132+ ),
133+ child: new Column (
134+ mainAxisAlignment: MainAxisAlignment .center,
135+ children: < Widget > [
136+ new Container (child: SpinKitCubeGrid (color: Colors .white)),
137+ new Container (height: 10.0 ),
138+ new Container (child: new Text (GSYStrings .loading_text, style: GSYConstant .normalTextWhite)),
139+ ],
140+ ),
141+ ),
130142 ),
131- child: new Column (
132- mainAxisAlignment: MainAxisAlignment .center,
133- children: < Widget > [
134- new Container (child: SpinKitCubeGrid (color: Colors .white)),
135- new Container (height: 10.0 ),
136- new Container (child: new Text (GSYStrings .loading_text, style: GSYConstant .normalTextWhite)),
137- ],
138- ),
139- ),
140- ),
141- );
143+ ));
142144 });
143145 }
144146
0 commit comments