diff --git a/src/ui/flutter/lib/l10n/intl_zh.arb b/src/ui/flutter/lib/l10n/intl_zh.arb index 35d9eecd..59fb96c4 100644 --- a/src/ui/flutter/lib/l10n/intl_zh.arb +++ b/src/ui/flutter/lib/l10n/intl_zh.arb @@ -60,7 +60,7 @@ "stockfish": "Stockfish - UCI 国际象棋引擎", "chessRoad": "ChessRoad (棋路) by He Zhaoyun", "nineChess": "NineChess (九联棋) by liuweilhy", - "settings": "设置", + "settings": "游戏设置", "level": "游戏难度", "sound": "声音", "tone": "提示音效", diff --git a/src/ui/flutter/lib/widgets/main_menu.dart b/src/ui/flutter/lib/widgets/main_menu.dart index 728c133f..ee4e81ff 100644 --- a/src/ui/flutter/lib/widgets/main_menu.dart +++ b/src/ui/flutter/lib/widgets/main_menu.dart @@ -19,7 +19,6 @@ import 'package:flutter/material.dart'; import 'package:sanmill/engine/engine.dart'; import 'package:sanmill/generated/l10n.dart'; -import 'package:sanmill/main.dart'; import 'package:sanmill/style/colors.dart'; import 'game_page.dart'; @@ -136,8 +135,10 @@ class _MainMenuState extends State with TickerProviderStateMixin { ), Expanded(child: SizedBox()), FlatButton( - child: Text(S.of(context).testViaLAN, style: menuItemStyle), - onPressed: () => navigateTo(GamePage(EngineType.testViaLAN)), + child: Text(S.of(context).settings, style: menuItemStyle), + onPressed: () => Navigator.of(context).push( + MaterialPageRoute(builder: (context) => SettingsPage()), + ), ), Expanded(child: SizedBox()), Text(S.of(context).gameWarning, @@ -156,6 +157,7 @@ class _MainMenuState extends State with TickerProviderStateMixin { body: Stack( children: [ menuItems, + /* Positioned( top: SanmillApp.StatusBarHeight, left: 10, @@ -166,6 +168,7 @@ class _MainMenuState extends State with TickerProviderStateMixin { ), ), ), + */ ], ), );