From d5bd0bca5f6f6ea92da4a28cf90fb3d8da9d9d91 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Mon, 12 Jan 2026 23:19:37 +0100 Subject: [PATCH] Fixed displayment bug with TopCenteredMessage --- lib/presentation/widgets/player_selection.dart | 1 + lib/presentation/widgets/top_centered_message.dart | 8 +++++++- pubspec.yaml | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/presentation/widgets/player_selection.dart b/lib/presentation/widgets/player_selection.dart index 9280ae0..c5bb5de 100644 --- a/lib/presentation/widgets/player_selection.dart +++ b/lib/presentation/widgets/player_selection.dart @@ -181,6 +181,7 @@ class _PlayerSelectionState extends State { icon: Icons.info, title: loc.info, message: _getInfoText(context), + fullscreen: false, ), child: ListView.builder( itemCount: suggestedPlayers.length, diff --git a/lib/presentation/widgets/top_centered_message.dart b/lib/presentation/widgets/top_centered_message.dart index c15c93d..ecd863c 100644 --- a/lib/presentation/widgets/top_centered_message.dart +++ b/lib/presentation/widgets/top_centered_message.dart @@ -10,6 +10,7 @@ class TopCenteredMessage extends StatelessWidget { required this.icon, required this.title, required this.message, + this.fullscreen = true, }); /// The icon to display above the title. @@ -21,13 +22,18 @@ class TopCenteredMessage extends StatelessWidget { /// The message text to display below the title. final String message; + final bool fullscreen; + @override Widget build(BuildContext context) { return Container( - padding: const EdgeInsets.only(top: 100), + padding: fullscreen ? const EdgeInsets.only(top: 100) : null, margin: const EdgeInsets.symmetric(horizontal: 10), alignment: Alignment.topCenter, child: Column( + mainAxisAlignment: fullscreen + ? MainAxisAlignment.start + : MainAxisAlignment.center, children: [ Icon(icon, size: 45), const SizedBox(height: 10), diff --git a/pubspec.yaml b/pubspec.yaml index 2afff43..9bc63cb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: game_tracker description: "Game Tracking App for Card Games" publish_to: 'none' -version: 0.0.5+143 +version: 0.0.5+144 environment: sdk: ^3.8.1 -- 2.49.1