diff --git a/lib/src/view/broadcast/broadcast_game_screen.dart b/lib/src/view/broadcast/broadcast_game_screen.dart index 71a1411a1d..a8793b356a 100644 --- a/lib/src/view/broadcast/broadcast_game_screen.dart +++ b/lib/src/view/broadcast/broadcast_game_screen.dart @@ -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, @@ -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,