flutter: main menu: Add Settings menu item and remove settings icon
This commit is contained in:
parent
bd6a9f7289
commit
3598c14644
|
@ -60,7 +60,7 @@
|
||||||
"stockfish": "Stockfish - UCI 国际象棋引擎",
|
"stockfish": "Stockfish - UCI 国际象棋引擎",
|
||||||
"chessRoad": "ChessRoad (棋路) by He Zhaoyun",
|
"chessRoad": "ChessRoad (棋路) by He Zhaoyun",
|
||||||
"nineChess": "NineChess (九联棋) by liuweilhy",
|
"nineChess": "NineChess (九联棋) by liuweilhy",
|
||||||
"settings": "设置",
|
"settings": "游戏设置",
|
||||||
"level": "游戏难度",
|
"level": "游戏难度",
|
||||||
"sound": "声音",
|
"sound": "声音",
|
||||||
"tone": "提示音效",
|
"tone": "提示音效",
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:sanmill/engine/engine.dart';
|
import 'package:sanmill/engine/engine.dart';
|
||||||
import 'package:sanmill/generated/l10n.dart';
|
import 'package:sanmill/generated/l10n.dart';
|
||||||
import 'package:sanmill/main.dart';
|
|
||||||
import 'package:sanmill/style/colors.dart';
|
import 'package:sanmill/style/colors.dart';
|
||||||
|
|
||||||
import 'game_page.dart';
|
import 'game_page.dart';
|
||||||
|
@ -136,8 +135,10 @@ class _MainMenuState extends State<MainMenu> with TickerProviderStateMixin {
|
||||||
),
|
),
|
||||||
Expanded(child: SizedBox()),
|
Expanded(child: SizedBox()),
|
||||||
FlatButton(
|
FlatButton(
|
||||||
child: Text(S.of(context).testViaLAN, style: menuItemStyle),
|
child: Text(S.of(context).settings, style: menuItemStyle),
|
||||||
onPressed: () => navigateTo(GamePage(EngineType.testViaLAN)),
|
onPressed: () => Navigator.of(context).push(
|
||||||
|
MaterialPageRoute(builder: (context) => SettingsPage()),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Expanded(child: SizedBox()),
|
Expanded(child: SizedBox()),
|
||||||
Text(S.of(context).gameWarning,
|
Text(S.of(context).gameWarning,
|
||||||
|
@ -156,6 +157,7 @@ class _MainMenuState extends State<MainMenu> with TickerProviderStateMixin {
|
||||||
body: Stack(
|
body: Stack(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
menuItems,
|
menuItems,
|
||||||
|
/*
|
||||||
Positioned(
|
Positioned(
|
||||||
top: SanmillApp.StatusBarHeight,
|
top: SanmillApp.StatusBarHeight,
|
||||||
left: 10,
|
left: 10,
|
||||||
|
@ -166,6 +168,7 @@ class _MainMenuState extends State<MainMenu> with TickerProviderStateMixin {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
*/
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue