From 62fcea5b0b762e9647e2877bb462e0da38892625 Mon Sep 17 00:00:00 2001 From: Krille Date: Wed, 15 May 2024 11:59:19 +0200 Subject: [PATCH] chore: Set a maxsize for textfields --- lib/pages/chat/input_bar.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/pages/chat/input_bar.dart b/lib/pages/chat/input_bar.dart index 35578a6fe..26a8d7e30 100644 --- a/lib/pages/chat/input_bar.dart +++ b/lib/pages/chat/input_bar.dart @@ -474,6 +474,9 @@ class InputBar extends StatelessWidget { keyboardType: keyboardType!, textInputAction: textInputAction, autofocus: autofocus!, + inputFormatters: [ + LengthLimitingTextInputFormatter((maxPDUSize / 3).floor()), + ], onSubmitted: (text) { // fix for library for now // it sets the types for the callback incorrectly