From 94c3bad02b57e2e7d93d7f8fe5b38f85f8c8c0ab Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Sat, 17 Jan 2026 22:41:02 +0100 Subject: [PATCH] Removed counter --- lib/presentation/widgets/text_input/text_input_field.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/presentation/widgets/text_input/text_input_field.dart b/lib/presentation/widgets/text_input/text_input_field.dart index 8f7a597..9d8680a 100644 --- a/lib/presentation/widgets/text_input/text_input_field.dart +++ b/lib/presentation/widgets/text_input/text_input_field.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; import 'package:game_tracker/core/custom_theme.dart'; class TextInputField extends StatelessWidget { @@ -33,11 +34,14 @@ class TextInputField extends StatelessWidget { controller: controller, onChanged: onChanged, maxLength: maxLength, + maxLengthEnforcement: MaxLengthEnforcement.truncateAfterCompositionEnds, decoration: InputDecoration( filled: true, fillColor: CustomTheme.boxColor, hintText: hintText, hintStyle: const TextStyle(fontSize: 18), + // Hides the character counter + counterText: '', enabledBorder: OutlineInputBorder( borderRadius: const BorderRadius.all(Radius.circular(12)), borderSide: BorderSide(color: CustomTheme.boxBorder),