TopCenteredMessage Anzeigefehler #161

Merged
sneeex merged 2 commits from bug/159-topcenteredmessage-anzeigefehler into development 2026-01-13 14:30:53 +00:00
3 changed files with 9 additions and 2 deletions
Showing only changes of commit d5bd0bca5f - Show all commits

View File

@@ -181,6 +181,7 @@ class _PlayerSelectionState extends State<PlayerSelection> {
icon: Icons.info, icon: Icons.info,
title: loc.info, title: loc.info,
message: _getInfoText(context), message: _getInfoText(context),
fullscreen: false,
), ),
child: ListView.builder( child: ListView.builder(
itemCount: suggestedPlayers.length, itemCount: suggestedPlayers.length,

View File

@@ -10,6 +10,7 @@ class TopCenteredMessage extends StatelessWidget {
required this.icon, required this.icon,
required this.title, required this.title,
required this.message, required this.message,
this.fullscreen = true,
}); });
/// The icon to display above the title. /// The icon to display above the title.
@@ -21,13 +22,18 @@ class TopCenteredMessage extends StatelessWidget {
/// The message text to display below the title. /// The message text to display below the title.
final String message; final String message;
final bool fullscreen;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
padding: const EdgeInsets.only(top: 100), padding: fullscreen ? const EdgeInsets.only(top: 100) : null,
margin: const EdgeInsets.symmetric(horizontal: 10), margin: const EdgeInsets.symmetric(horizontal: 10),
alignment: Alignment.topCenter, alignment: Alignment.topCenter,
child: Column( child: Column(
mainAxisAlignment: fullscreen
? MainAxisAlignment.start
: MainAxisAlignment.center,
children: [ children: [
Icon(icon, size: 45), Icon(icon, size: 45),
const SizedBox(height: 10), const SizedBox(height: 10),

View File

@@ -1,7 +1,7 @@
name: game_tracker name: game_tracker
description: "Game Tracking App for Card Games" description: "Game Tracking App for Card Games"
publish_to: 'none' publish_to: 'none'
version: 0.0.5+143 version: 0.0.5+144
environment: environment:
sdk: ^3.8.1 sdk: ^3.8.1