set max char size for input field

This commit is contained in:
bluearevalo 2024-07-10 16:47:22 -04:00
parent 425b7ddcf1
commit 5494019be5

View file

@ -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