From 20a8a933b65d6f0ecc926150e1e2b61ff80fd92f Mon Sep 17 00:00:00 2001 From: mathiskirchner Date: Sun, 3 Aug 2025 13:13:11 +0200 Subject: [PATCH] align title text left --- .../views/main_menu/home_view.dart | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/lib/presentation/views/main_menu/home_view.dart b/lib/presentation/views/main_menu/home_view.dart index b27f223..5a4f538 100644 --- a/lib/presentation/views/main_menu/home_view.dart +++ b/lib/presentation/views/main_menu/home_view.dart @@ -25,11 +25,13 @@ class _HomeViewState extends State { body: Padding( padding: const EdgeInsets.all(16.0), child: Column( - crossAxisAlignment: CrossAxisAlignment.center, children: [ - const Text( - 'Zuletzt verwendete Gruppen', - style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold), + Align( + alignment: Alignment.centerLeft, + child: const Text( + 'Zuletzt verwendete Gruppen', + style: TextStyle(fontSize: 17, fontWeight: FontWeight.bold), + ), ), const SizedBox(height: 8), PrimaryContainer( @@ -74,9 +76,12 @@ class _HomeViewState extends State { ), ), const SizedBox(height: 24), - const Text( - 'Zuletzt gespielte Spiele', - style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold), + Align( + alignment: Alignment.centerLeft, + child: const Text( + 'Zuletzt gespielte Spiele', + style: TextStyle(fontSize: 17, fontWeight: FontWeight.bold), + ), ), const SizedBox(height: 8), PrimaryContainer( @@ -121,9 +126,12 @@ class _HomeViewState extends State { ), ), const SizedBox(height: 24), - const Text( - 'Lieblingsspiel nicht gefunden?', - style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold), + Align( + alignment: Alignment.centerLeft, + child: const Text( + 'Lieblingsspiel nicht gefunden?', + style: TextStyle(fontSize: 17, fontWeight: FontWeight.bold), + ), ), const SizedBox(height: 8), PrimaryContainer(