Skip to content

Commit

Permalink
refactor: use game.playerOf() instead of manual implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-anders committed Dec 26, 2024
1 parent bc6d636 commit e76b70b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/view/game/game_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class GamePlayer extends StatelessWidget {
final remaingHeight = estimateRemainingHeightLeftBoard(context);
final playerFontSize = remaingHeight <= kSmallRemainingHeightLeftBoardThreshold ? 14.0 : 16.0;

final player = side == Side.white ? game.white : game.black;
final player = game.playerOf(side);

final playerWidget = Column(
mainAxisAlignment: MainAxisAlignment.center,
Expand Down

0 comments on commit e76b70b

Please sign in to comment.