flutter: Fix warnings
This commit is contained in:
parent
e3711d624b
commit
5a15eb7d6a
|
@ -392,7 +392,7 @@ class Position {
|
|||
return pieceOnBoardCount[Color.black] + pieceOnBoardCount[Color.white];
|
||||
}
|
||||
|
||||
int GetNPiecesInHand() {
|
||||
int getNPiecesInHand() {
|
||||
pieceInHandCount[Color.black] =
|
||||
rule.piecesCount - pieceOnBoardCount[Color.black];
|
||||
pieceInHandCount[Color.white] =
|
||||
|
@ -432,7 +432,7 @@ class Position {
|
|||
return -1;
|
||||
}
|
||||
|
||||
GetNPiecesInHand();
|
||||
getNPiecesInHand();
|
||||
pieceToRemoveCount = 0;
|
||||
|
||||
winner = Color.nobody;
|
||||
|
|
|
@ -326,8 +326,8 @@ class _GamePageState extends State<GamePage> with RouteAware {
|
|||
|
||||
String getGameOverReasonString(GameOverReason reason, String winner) {
|
||||
String loseReasonStr;
|
||||
String winnerStr =
|
||||
winner == Color.black ? S.of(context).black : S.of(context).white;
|
||||
//String winnerStr =
|
||||
// winner == Color.black ? S.of(context).black : S.of(context).white;
|
||||
String loserStr =
|
||||
winner == Color.black ? S.of(context).white : S.of(context).black;
|
||||
|
||||
|
|
Loading…
Reference in New Issue