mirror of
https://github.com/krille-chan/fluffychat
synced 2024-10-05 13:12:44 +00:00
chore: Set a maxsize for textfields
This commit is contained in:
parent
8a64bdd82d
commit
62fcea5b0b
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue