From f65ea09cbe1c0ad6cfd6f6a1148665091f1ebb9c Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Sun, 24 May 2026 17:33:41 +0200 Subject: [PATCH] Added spacing --- .../widgets/tiles/statistics_tile.dart | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/presentation/widgets/tiles/statistics_tile.dart b/lib/presentation/widgets/tiles/statistics_tile.dart index 0abe3bb..ad850dd 100644 --- a/lib/presentation/widgets/tiles/statistics_tile.dart +++ b/lib/presentation/widgets/tiles/statistics_tile.dart @@ -196,11 +196,10 @@ class StatisticsTile extends StatelessWidget { Padding( padding: const EdgeInsets.only(top: 8.0), child: Row( - mainAxisAlignment: MainAxisAlignment.spaceAround, + mainAxisAlignment: MainAxisAlignment.start, children: [ // Game - if (statistic.selectedGames != null && - statistic.selectedGames!.isNotEmpty) + if (hasGroup) Row( spacing: 8, children: [ @@ -220,10 +219,10 @@ class StatisticsTile extends StatelessWidget { ), ], ), + if (hasGroup && hasGame) const SizedBox(width: 20), // Group - if (statistic.selectedGroups != null && - statistic.selectedGroups!.isNotEmpty) + if (hasGroup) Row( spacing: 8, children: [ @@ -269,4 +268,10 @@ class StatisticsTile extends StatelessWidget { } return text; } + + bool get hasGroup => + statistic.selectedGroups != null && statistic.selectedGroups!.isNotEmpty; + + bool get hasGame => + statistic.selectedGames != null && statistic.selectedGames!.isNotEmpty; }