From cc50e497c9e671e669fdc9d519cfdfbde26834fd Mon Sep 17 00:00:00 2001 From: gelbeinhalb Date: Thu, 27 Nov 2025 17:04:08 +0100 Subject: [PATCH] merge duplicate if statements for group and winner sections --- .../widgets/tiles/game_history_tile.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/presentation/widgets/tiles/game_history_tile.dart b/lib/presentation/widgets/tiles/game_history_tile.dart index 83e0ba0..066603e 100644 --- a/lib/presentation/widgets/tiles/game_history_tile.dart +++ b/lib/presentation/widgets/tiles/game_history_tile.dart @@ -60,7 +60,7 @@ class _GameHistoryTileState extends State { const SizedBox(height: 8), - if (group != null) + if (group != null) ...[ Row( children: [ const Icon( @@ -81,10 +81,10 @@ class _GameHistoryTileState extends State { ), ], ), + const SizedBox(height: 12), + ], - if (group != null) const SizedBox(height: 12), - - if (winner != null) + if (winner != null) ...[ Container( padding: const EdgeInsets.symmetric(vertical: 8, horizontal: 12), decoration: BoxDecoration( @@ -114,8 +114,8 @@ class _GameHistoryTileState extends State { ], ), ), - - if (winner != null) const SizedBox(height: 12), + const SizedBox(height: 12), + ], if (allPlayers.isNotEmpty) ...[ const Text(