From 921b3bbbc258c606a7b0c0ecc8a28a45d931c638 Mon Sep 17 00:00:00 2001 From: Calcitem Date: Sat, 10 Apr 2021 11:40:08 +0800 Subject: [PATCH] flutter: Fix spelling error --- src/ui/flutter_app/lib/widgets/game_page.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/flutter_app/lib/widgets/game_page.dart b/src/ui/flutter_app/lib/widgets/game_page.dart index 06634e11..8b4455a1 100644 --- a/src/ui/flutter_app/lib/widgets/game_page.dart +++ b/src/ui/flutter_app/lib/widgets/game_page.dart @@ -341,7 +341,7 @@ class _GamePageState extends State with RouteAware { String loserStr = winner == PieceColor.black ? S.of(context).white : S.of(context).black; - Map resonMap = { + Map reasonMap = { GameOverReason.loseReasonlessThanThree: loserStr + S.of(context).loseReasonlessThanThree, GameOverReason.loseReasonResign: @@ -359,7 +359,7 @@ class _GamePageState extends State 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;