Skip to content

Commit 23a71c7

Browse files
committed
Show game result in broadcast player games
1 parent 0d520d2 commit 23a71c7

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

lib/src/view/broadcast/broadcast_player_results_screen.dart

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,27 @@ class _GameResultListTile extends StatelessWidget {
433433
mainAxisSize: .min,
434434
crossAxisAlignment: .end,
435435
children: [
436+
Row(
437+
mainAxisSize: .min,
438+
children: [
439+
Text(
440+
switch (points) {
441+
BroadcastPoints.one => '1',
442+
BroadcastPoints.half => '½',
443+
BroadcastPoints.zero => '0',
444+
_ => '*',
445+
},
446+
style: Theme.of(
447+
context,
448+
).textTheme.bodyMedium?.copyWith(fontWeight: FontWeight.bold),
449+
),
450+
const SizedBox(width: 3),
451+
if (showRatingDiff && playerGameResult.ratingDiff != null)
452+
ProgressionWidget(playerGameResult.ratingDiff!, fontSize: 13),
453+
],
454+
),
436455
if (opponent.rating != null)
437456
Text(opponent.rating.toString(), style: Theme.of(context).textTheme.bodyMedium),
438-
if (showRatingDiff && playerGameResult.ratingDiff != null)
439-
ProgressionWidget(playerGameResult.ratingDiff!, fontSize: 13),
440457
],
441458
),
442459
),

0 commit comments

Comments
 (0)