diff --git a/lib/presentation/views/main_menu/group_view/create_group_view.dart b/lib/presentation/views/main_menu/group_view/create_group_view.dart index da7eb1d..4b34095 100644 --- a/lib/presentation/views/main_menu/group_view/create_group_view.dart +++ b/lib/presentation/views/main_menu/group_view/create_group_view.dart @@ -48,6 +48,7 @@ class _CreateGroupViewState extends State { final loc = AppLocalizations.of(context); return ScaffoldMessenger( child: Scaffold( + resizeToAvoidBottomInset: false, backgroundColor: CustomTheme.backgroundColor, appBar: AppBar(title: Text(loc.create_new_group)), body: SafeArea( diff --git a/lib/presentation/views/main_menu/match_view/create_match/choose_game_view.dart b/lib/presentation/views/main_menu/match_view/create_match/choose_game_view.dart index 4d14011..35e1cb9 100644 --- a/lib/presentation/views/main_menu/match_view/create_match/choose_game_view.dart +++ b/lib/presentation/views/main_menu/match_view/create_match/choose_game_view.dart @@ -46,6 +46,7 @@ class _ChooseGameViewState extends State { final loc = AppLocalizations.of(context); return Scaffold( backgroundColor: CustomTheme.backgroundColor, + resizeToAvoidBottomInset: false, appBar: AppBar( leading: IconButton( icon: const Icon(Icons.arrow_back_ios), diff --git a/lib/presentation/views/main_menu/match_view/create_match/choose_group_view.dart b/lib/presentation/views/main_menu/match_view/create_match/choose_group_view.dart index 00a0276..592d765 100644 --- a/lib/presentation/views/main_menu/match_view/create_match/choose_group_view.dart +++ b/lib/presentation/views/main_menu/match_view/create_match/choose_group_view.dart @@ -43,6 +43,7 @@ class _ChooseGroupViewState extends State { final loc = AppLocalizations.of(context); return Scaffold( backgroundColor: CustomTheme.backgroundColor, + resizeToAvoidBottomInset: false, appBar: AppBar( leading: IconButton( icon: const Icon(Icons.arrow_back_ios), diff --git a/lib/presentation/views/main_menu/match_view/create_match/create_match_view.dart b/lib/presentation/views/main_menu/match_view/create_match/create_match_view.dart index e106de7..2f512bb 100644 --- a/lib/presentation/views/main_menu/match_view/create_match/create_match_view.dart +++ b/lib/presentation/views/main_menu/match_view/create_match/create_match_view.dart @@ -108,6 +108,7 @@ class _CreateMatchViewState extends State { final loc = AppLocalizations.of(context); return ScaffoldMessenger( child: Scaffold( + resizeToAvoidBottomInset: false, backgroundColor: CustomTheme.backgroundColor, appBar: AppBar(title: Text(loc.create_new_match)), body: SafeArea( diff --git a/lib/presentation/views/main_menu/match_view/create_match/game_view/create_game_view.dart b/lib/presentation/views/main_menu/match_view/create_match/game_view/create_game_view.dart index a541f2b..b3216f2 100644 --- a/lib/presentation/views/main_menu/match_view/create_match/game_view/create_game_view.dart +++ b/lib/presentation/views/main_menu/match_view/create_match/game_view/create_game_view.dart @@ -113,6 +113,7 @@ class _CreateGameViewState extends State { minLines: 6, maxLines: 6, maxLength: Constants.MAX_GAME_DESCRIPTION_LENGTH, + showCounterText: true, ), ), const Spacer(), diff --git a/lib/presentation/widgets/text_input/text_input_field.dart b/lib/presentation/widgets/text_input/text_input_field.dart index f987ac6..0b949ba 100644 --- a/lib/presentation/widgets/text_input/text_input_field.dart +++ b/lib/presentation/widgets/text_input/text_input_field.dart @@ -9,6 +9,7 @@ class TextInputField extends StatelessWidget { /// - [maxLength]: Optional parameter for maximum length of the input text. /// - [maxLines]: The maximum number of lines for the text input field. Defaults to 1. /// - [minLines]: The minimum number of lines for the text input field. Defaults to 1. + /// - [showCounterText]: Whether to show the counter text in the text input field. Defaults to false. const TextInputField({ super.key, required this.controller, @@ -16,7 +17,8 @@ class TextInputField extends StatelessWidget { this.onChanged, this.maxLength, this.maxLines = 1, - this.minLines = 1 + this.minLines = 1, + this.showCounterText = false }); /// The controller for the text input field. @@ -37,6 +39,8 @@ class TextInputField extends StatelessWidget { /// The minimum number of lines for the text input field. final int? minLines; + /// Whether to show the counter text in the text input field. + final bool showCounterText; @override Widget build(BuildContext context) { @@ -51,6 +55,7 @@ class TextInputField extends StatelessWidget { fillColor: CustomTheme.boxColor, hintText: hintText, hintStyle: const TextStyle(fontSize: 18), + counterText: showCounterText ? null : '', enabledBorder: OutlineInputBorder( borderRadius: const BorderRadius.all(Radius.circular(12)), borderSide: BorderSide(color: CustomTheme.boxBorder), diff --git a/pubspec.yaml b/pubspec.yaml index bb70ee2..064d4e6 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.9+247 +version: 0.0.10+248 environment: sdk: ^3.8.1