1 Commits

Author SHA1 Message Date
d5bd0bca5f Fixed displayment bug with TopCenteredMessage
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m6s
Pull Request Pipeline / lint (pull_request) Successful in 2m11s
2026-01-12 23:19:37 +01:00
3 changed files with 9 additions and 2 deletions

View File

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

View File

@@ -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),

View File

@@ -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