From 1e40b41e2609dfd49a4549c28f5651a403b55843 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Sun, 20 Jul 2025 23:47:18 +0200 Subject: [PATCH] game names now can have up to 20 chars --- lib/presentation/views/active_game_view.dart | 5 ++++- lib/presentation/views/create_game_view.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/presentation/views/active_game_view.dart b/lib/presentation/views/active_game_view.dart index 25e88a7..230603c 100644 --- a/lib/presentation/views/active_game_view.dart +++ b/lib/presentation/views/active_game_view.dart @@ -49,7 +49,10 @@ class _ActiveGameViewState extends State { gameSession.playerScores, sortedPlayerIndices); return CupertinoPageScaffold( navigationBar: CupertinoNavigationBar( - middle: Text(gameSession.gameTitle), + middle: Text( + gameSession.gameTitle, + overflow: TextOverflow.ellipsis, + ), ), child: SafeArea( child: SingleChildScrollView( diff --git a/lib/presentation/views/create_game_view.dart b/lib/presentation/views/create_game_view.dart index 236baff..94f7c3a 100644 --- a/lib/presentation/views/create_game_view.dart +++ b/lib/presentation/views/create_game_view.dart @@ -94,7 +94,7 @@ class _CreateGameViewState extends State { padding: const EdgeInsets.fromLTRB(15, 10, 10, 0), child: CupertinoTextField( decoration: const BoxDecoration(), - maxLength: 16, + maxLength: 20, prefix: Text(AppLocalizations.of(context).name), textAlign: TextAlign.right, placeholder: AppLocalizations.of(context).game_title, diff --git a/pubspec.yaml b/pubspec.yaml index 01d641d..4994cb9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: cabo_counter description: "Mobile app for the card game Cabo" publish_to: 'none' -version: 0.5.2+581 +version: 0.5.2+582 environment: sdk: ^3.5.4