Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/src/view/broadcast/broadcast_game_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,16 @@ class _Body extends ConsumerWidget {
(context, boardSize, borderRadius) =>
_BroadcastBoard(roundId, gameId, boardSize, borderRadius),
boardHeader: _PlayerWidget(
// We need to use a key to preserve the state of the clock when board is flipped
key: const ValueKey('top'),
tournamentId: tournamentId,
roundId: roundId,
gameId: gameId,
widgetPosition: _PlayerWidgetPosition.top,
),
boardFooter: _PlayerWidget(
// We need to use a key to preserve the state of the clock when board is flipped
key: const ValueKey('bottom'),
tournamentId: tournamentId,
roundId: roundId,
gameId: gameId,
Expand Down Expand Up @@ -381,6 +385,7 @@ enum _PlayerWidgetPosition { bottom, top }

class _PlayerWidget extends ConsumerWidget {
const _PlayerWidget({
required super.key,
required this.tournamentId,
required this.roundId,
required this.gameId,
Expand Down