refactor: adjust heights and alignment in QuickInfoTile for better layout
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 47s
Pull Request Pipeline / lint (pull_request) Successful in 50s

This commit is contained in:
2026-05-08 12:17:40 +02:00
parent f0c1ce9881
commit b6a252287d
2 changed files with 3 additions and 4 deletions

View File

@@ -104,7 +104,7 @@ class _HomeViewState extends State<HomeView> {
children: [ children: [
QuickInfoTile( QuickInfoTile(
width: constraints.maxWidth * 0.45, width: constraints.maxWidth * 0.45,
height: constraints.maxHeight * 0.15, height: constraints.maxHeight * 0.13,
title: loc.matches, title: loc.matches,
icon: Icons.groups_rounded, icon: Icons.groups_rounded,
value: matchCount, value: matchCount,
@@ -112,7 +112,7 @@ class _HomeViewState extends State<HomeView> {
SizedBox(width: constraints.maxWidth * 0.05), SizedBox(width: constraints.maxWidth * 0.05),
QuickInfoTile( QuickInfoTile(
width: constraints.maxWidth * 0.45, width: constraints.maxWidth * 0.45,
height: constraints.maxHeight * 0.15, height: constraints.maxHeight * 0.13,
title: loc.groups, title: loc.groups,
icon: Icons.groups_rounded, icon: Icons.groups_rounded,
value: groupCount, value: groupCount,

View File

@@ -50,7 +50,7 @@ class _QuickInfoTileState extends State<QuickInfoTile> {
width: widget.width ?? 180, width: widget.width ?? 180,
decoration: CustomTheme.standardBoxDecoration, decoration: CustomTheme.standardBoxDecoration,
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Row( Row(
children: [ children: [
@@ -65,7 +65,6 @@ class _QuickInfoTileState extends State<QuickInfoTile> {
), ),
], ],
), ),
const Spacer(),
Text( Text(
widget.value.toString(), widget.value.toString(),
style: const TextStyle(fontSize: 32, fontWeight: FontWeight.bold), style: const TextStyle(fontSize: 32, fontWeight: FontWeight.bold),