diff --git a/lib/views/main_menu_view.dart b/lib/views/main_menu_view.dart index 0c4db52..ea9b5c0 100644 --- a/lib/views/main_menu_view.dart +++ b/lib/views/main_menu_view.dart @@ -36,6 +36,26 @@ class _MainMenuViewState extends State { players: ['Tim', 'Max', 'Sophie', 'Lena'], winner: 'Sophie', gameMode: 0), + GameSession( + gameTitle: '2 Namen max length', + players: ['Heinrich', 'Johannes'], + winner: 'Sophie', + gameMode: 0), + GameSession( + gameTitle: '3 Namen max length', + players: ['Benjamin', 'Stefanie', 'Wolfgang'], + winner: 'Sophie', + gameMode: 0), + GameSession( + gameTitle: '4 Namen max length', + players: ['Leonhard', 'Mathilde', 'Bernhard', 'Gerlinde'], + winner: 'Sophie', + gameMode: 0), + GameSession( + gameTitle: '5 Namen max length', + players: ['Hartmuth', 'Elisabet', 'Rosalind', 'Theresia', 'Karoline'], + winner: 'Sophie', + gameMode: 0), ]; @override Widget build(BuildContext context) { diff --git a/lib/views/round_view.dart b/lib/views/round_view.dart index 1d32963..5651b44 100644 --- a/lib/views/round_view.dart +++ b/lib/views/round_view.dart @@ -105,15 +105,18 @@ class _RoundViewState extends State { widget.gameSession.players.asMap().keys, value: (index) => Padding( padding: EdgeInsets.symmetric( - horizontal: - gameSession.players.length > 3 ? 11 : 15, + horizontal: gameSession.players.length < 3 + ? 15 + : (gameSession.players.length > 4 ? 2 : 11), ), child: Text( widget.gameSession.players[index], + textAlign: TextAlign.center, + maxLines: 1, style: TextStyle( fontWeight: FontWeight.bold, fontSize: - gameSession.players.length > 3 ? 14 : 16), + gameSession.players.length > 3 ? 15 : 18), ), ), ), @@ -237,7 +240,7 @@ class _RoundViewState extends State { ], )), Positioned( - bottom: MediaQuery.of(context).viewInsets.bottom, + bottom: 0, left: 0, right: 0, child: Container(