From b6a252287dfee7c58341b487b0825e2fe0feabfd Mon Sep 17 00:00:00 2001 From: Mathis Kirchner Date: Fri, 8 May 2026 12:17:40 +0200 Subject: [PATCH] refactor: adjust heights and alignment in QuickInfoTile for better layout --- lib/presentation/views/main_menu/home_view.dart | 4 ++-- lib/presentation/widgets/tiles/quick_info_tile.dart | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/presentation/views/main_menu/home_view.dart b/lib/presentation/views/main_menu/home_view.dart index 321f12b..627db82 100644 --- a/lib/presentation/views/main_menu/home_view.dart +++ b/lib/presentation/views/main_menu/home_view.dart @@ -104,7 +104,7 @@ class _HomeViewState extends State { children: [ QuickInfoTile( width: constraints.maxWidth * 0.45, - height: constraints.maxHeight * 0.15, + height: constraints.maxHeight * 0.13, title: loc.matches, icon: Icons.groups_rounded, value: matchCount, @@ -112,7 +112,7 @@ class _HomeViewState extends State { SizedBox(width: constraints.maxWidth * 0.05), QuickInfoTile( width: constraints.maxWidth * 0.45, - height: constraints.maxHeight * 0.15, + height: constraints.maxHeight * 0.13, title: loc.groups, icon: Icons.groups_rounded, value: groupCount, diff --git a/lib/presentation/widgets/tiles/quick_info_tile.dart b/lib/presentation/widgets/tiles/quick_info_tile.dart index 5646fa5..c36aa92 100644 --- a/lib/presentation/widgets/tiles/quick_info_tile.dart +++ b/lib/presentation/widgets/tiles/quick_info_tile.dart @@ -50,7 +50,7 @@ class _QuickInfoTileState extends State { width: widget.width ?? 180, decoration: CustomTheme.standardBoxDecoration, child: Column( - mainAxisAlignment: MainAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Row( children: [ @@ -65,7 +65,6 @@ class _QuickInfoTileState extends State { ), ], ), - const Spacer(), Text( widget.value.toString(), style: const TextStyle(fontSize: 32, fontWeight: FontWeight.bold),