|
|
@@ -19,7 +19,7 @@ class StartWindowState extends State<StartWindow> {
|
|
|
await Future.delayed(const Duration(seconds: 1));
|
|
|
if (_num == 0) {
|
|
|
if (isNext) {
|
|
|
- Navigator.pop(context);
|
|
|
+ Navigator.of(context).pop(false);
|
|
|
}
|
|
|
return;
|
|
|
}
|
|
|
@@ -37,9 +37,9 @@ class StartWindowState extends State<StartWindow> {
|
|
|
@override
|
|
|
void initState() {
|
|
|
super.initState();
|
|
|
-
|
|
|
+
|
|
|
Future.delayed(Duration.zero, () {
|
|
|
- getNum();
|
|
|
+ getNum();
|
|
|
});
|
|
|
}
|
|
|
|
|
|
@@ -66,11 +66,7 @@ class StartWindowState extends State<StartWindow> {
|
|
|
child: Column(
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
children: <Widget>[
|
|
|
- Text('点击确认开始游戏',
|
|
|
- style: TextStyle(
|
|
|
- color: Color(0xFFFDC372),
|
|
|
- fontSize: 20,
|
|
|
- fontWeight: FontWeight.w600)),
|
|
|
+ Text('点击确认开始游戏', style: TextStyle(color: Color(0xFFFDC372), fontSize: 20, fontWeight: FontWeight.w600)),
|
|
|
_centerContent(),
|
|
|
Container(
|
|
|
child: RaisedButton(
|
|
|
@@ -86,9 +82,7 @@ class StartWindowState extends State<StartWindow> {
|
|
|
)),
|
|
|
),
|
|
|
),
|
|
|
- onWillPop: () {
|
|
|
-
|
|
|
- },
|
|
|
+ onWillPop: () {},
|
|
|
),
|
|
|
);
|
|
|
}
|
|
|
@@ -128,10 +122,7 @@ class StartWindowState extends State<StartWindow> {
|
|
|
child: Center(
|
|
|
child: Text(
|
|
|
"$_num",
|
|
|
- style: TextStyle(
|
|
|
- color: Colors.white,
|
|
|
- fontSize: 32,
|
|
|
- fontWeight: FontWeight.w600),
|
|
|
+ style: TextStyle(color: Colors.white, fontSize: 32, fontWeight: FontWeight.w600),
|
|
|
),
|
|
|
),
|
|
|
),
|