refactor: adjust heights and alignment in QuickInfoTile for better layout
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user