From 5494019be5407fa720dd54186ef87b5d6d1b252a Mon Sep 17 00:00:00 2001 From: bluearevalo <90929912+bluearevalo@users.noreply.github.com> Date: Wed, 10 Jul 2024 16:47:22 -0400 Subject: [PATCH] set max char size for input field --- lib/pages/chat/input_bar.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pages/chat/input_bar.dart b/lib/pages/chat/input_bar.dart index a02626978..04d1be9db 100644 --- a/lib/pages/chat/input_bar.dart +++ b/lib/pages/chat/input_bar.dart @@ -490,8 +490,10 @@ class InputBar extends StatelessWidget { keyboardType: keyboardType!, textInputAction: textInputAction, autofocus: autofocus!, + //setting max character count to 1000 + //after max, nothing else can be typed inputFormatters: [ - LengthLimitingTextInputFormatter((maxPDUSize / 3).floor()), + LengthLimitingTextInputFormatter(1000), ], onSubmitted: (text) { // fix for library for now