flutter: Fix typo

(cherry picked from commit 360173eefa)
This commit is contained in:
Calcitem 2021-05-14 19:23:46 +08:00
parent bcd03c59f7
commit 037c40d6d4
5 changed files with 23 additions and 23 deletions

View File

@ -260,9 +260,9 @@
"@drawReasonBoardIsFull": { "@drawReasonBoardIsFull": {
"description": "It is a Draw, because the board is full" "description": "It is a Draw, because the board is full"
}, },
"drawReasonThreefoldRepetition": "It is a Draw, because three fold repetition.", "drawReasonThreefoldRepetition": "It is a Draw, because threefold repetition.",
"@drawReasonThreefoldRepetition": { "@drawReasonThreefoldRepetition": {
"description": "It is a Draw, because three fold repetition." "description": "It is a Draw, because threefold repetition."
}, },
"gameOverUnknownReason": "Game Over! Unknown reason.", "gameOverUnknownReason": "Game Over! Unknown reason.",
"@gameOverUnknownReason": { "@gameOverUnknownReason": {
@ -336,9 +336,9 @@
"@options": { "@options": {
"description": "Options" "description": "Options"
}, },
"perferences": "Perferences", "preferences": "Preferences",
"@perferences": { "@preferences": {
"description": "Perferences" "description": "Preferences"
}, },
"skillLevel": "Difficulty level", "skillLevel": "Difficulty level",
"@skillLevel": { "@skillLevel": {
@ -508,13 +508,13 @@
"@mayFly": { "@mayFly": {
"description": "Flying" "description": "Flying"
}, },
"mayFly_Detail": "If a player has only three pieces left, she is allowed to move the piece to any free point.", "mayFly_Detail": "If a player has only three pieces left, she can move the piece to any free point.",
"@mayFly_Detail": { "@mayFly_Detail": {
"description": "If a player has only three pieces left, she is allowed to move the piece to any free point." "description": "If a player has only three pieces left, she can move the piece to any free point."
}, },
"maxStepsLedToDraw": "Max Steps Led To Draw", "maxStepsLedToDraw": "Max Steps Led to Draw",
"@maxStepsLedToDraw": { "@maxStepsLedToDraw": {
"description": "Max Steps Led To Draw" "description": "Max Steps Led to Draw"
}, },
"copy": "Copy", "copy": "Copy",
"@copy": { "@copy": {
@ -536,9 +536,9 @@
"@inviteFriend": { "@inviteFriend": {
"description": "Invite Friend" "description": "Invite Friend"
}, },
"rateTheApp": "Rate The App", "rateTheApp": "Rate the App",
"@rateTheApp": { "@rateTheApp": {
"description": "Rate The App" "description": "Rate the App"
}, },
"exit": "Exit", "exit": "Exit",
"@exit": { "@exit": {
@ -652,9 +652,9 @@
"@toRemovePiece": { "@toRemovePiece": {
"description": "Tap on opponent's one piece to remove." "description": "Tap on opponent's one piece to remove."
}, },
"needToCreateMillFirst": "You need to create a mill first, before you are allowed to remove a piece.", "needToCreateMillFirst": "You need to create a mill first, before you can remove a piece.",
"@needToCreateMillFirst": { "@needToCreateMillFirst": {
"description": "You need to create a mill first, before you are allowed to remove a piece." "description": "You need to create a mill first, before you can remove a piece."
}, },
"needToPlayWithOwnPieces": "You need to play with your own pieces.", "needToPlayWithOwnPieces": "You need to play with your own pieces.",
"@needToPlayWithOwnPieces": { "@needToPlayWithOwnPieces": {
@ -680,9 +680,9 @@
"@difficult": { "@difficult": {
"description": "Difficult" "description": "Difficult"
}, },
"cannotRemoveFromMill": "Can not remove from mill.", "cannotRemoveFromMill": "Cannot remove from mill.",
"@cannotRemoveFromMill": { "@cannotRemoveFromMill": {
"description": "Can not remove from mill." "description": "Cannot remove from mill."
}, },
"left": "left", "left": "left",
"@left": { "@left": {
@ -760,9 +760,9 @@
"@sourceCode": { "@sourceCode": {
"description": "Source code" "description": "Source code"
}, },
"openSourceLicenses": "Open source licenses", "openSourceLicenses": "Open-source licenses",
"@openSourceLicenses": { "@openSourceLicenses": {
"description": "Open source licenses" "description": "Open-source licenses"
}, },
"thirdPartyNotices": "Third-party notices", "thirdPartyNotices": "Third-party notices",
"@thirdPartyNotices": { "@thirdPartyNotices": {

View File

@ -84,7 +84,7 @@
"thankWho": "参考借鉴的主要开源库如下,同时也感谢其他默默无闻为开源事业做出贡献的人们:", "thankWho": "参考借鉴的主要开源库如下,同时也感谢其他默默无闻为开源事业做出贡献的人们:",
"settings": "设置", "settings": "设置",
"options": "选项", "options": "选项",
"perferences": "游戏设置", "preferences": "游戏设置",
"difficulty": "游戏难度", "difficulty": "游戏难度",
"skillLevel": "难度等级", "skillLevel": "难度等级",
"moveTime": "机器思考时间", "moveTime": "机器思考时间",

View File

@ -213,7 +213,7 @@ class _GameSettingsPageState extends State<GameSettingsPage> {
backgroundColor: AppTheme.lightBackgroundColor, backgroundColor: AppTheme.lightBackgroundColor,
appBar: AppBar( appBar: AppBar(
centerTitle: true, centerTitle: true,
title: Text(S.of(context).perferences), title: Text(S.of(context).preferences),
), ),
body: SingleChildScrollView( body: SingleChildScrollView(
padding: const EdgeInsets.all(16), padding: const EdgeInsets.all(16),

View File

@ -28,7 +28,7 @@ enum DrawerIndex {
humanVsAi, humanVsAi,
humanVsHuman, humanVsHuman,
aiVsAi, aiVsAi,
perferences, preferences,
ruleSettings, ruleSettings,
personalization, personalization,
Help, Help,
@ -86,8 +86,8 @@ class _HomeDrawerState extends State<HomeDrawer> {
icon: Icon(Icons.computer), icon: Icon(Icons.computer),
), ),
DrawerListItem( DrawerListItem(
index: DrawerIndex.perferences, index: DrawerIndex.preferences,
title: S.of(context).perferences, title: S.of(context).preferences,
icon: Icon(Icons.settings), icon: Icon(Icons.settings),
), ),
DrawerListItem( DrawerListItem(

View File

@ -93,7 +93,7 @@ class _NavigationHomeScreenState extends State<NavigationHomeScreen> {
Game.instance.setWhoIsAi(engineType); Game.instance.setWhoIsAi(engineType);
screenView = GamePage(engineType); screenView = GamePage(engineType);
}); });
} else if (drawerIndex == DrawerIndex.perferences) { } else if (drawerIndex == DrawerIndex.preferences) {
setState(() { setState(() {
screenView = GameSettingsPage(); screenView = GameSettingsPage();
}); });