flutter: Fix spelling error

This commit is contained in:
Calcitem 2021-04-10 11:40:08 +08:00
parent fca9c8822b
commit 921b3bbbc2
1 changed files with 2 additions and 2 deletions

View File

@ -341,7 +341,7 @@ class _GamePageState extends State<GamePage> with RouteAware {
String loserStr =
winner == PieceColor.black ? S.of(context).white : S.of(context).black;
Map<GameOverReason, String> resonMap = {
Map<GameOverReason, String> reasonMap = {
GameOverReason.loseReasonlessThanThree:
loserStr + S.of(context).loseReasonlessThanThree,
GameOverReason.loseReasonResign:
@ -359,7 +359,7 @@ class _GamePageState extends State<GamePage> with RouteAware {
print("Game over reason: ${Game.instance.position.gameOverReason}");
String? loseReasonStr = resonMap[Game.instance.position.gameOverReason];
String? loseReasonStr = reasonMap[Game.instance.position.gameOverReason];
if (loseReasonStr == null) {
loseReasonStr = S.of(context).gameOverUnknownReason;