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!,
|
keyboardType: keyboardType!,
|
||||||
textInputAction: textInputAction,
|
textInputAction: textInputAction,
|
||||||
autofocus: autofocus!,
|
autofocus: autofocus!,
|
||||||
|
inputFormatters: [
|
||||||
|
LengthLimitingTextInputFormatter((maxPDUSize / 3).floor()),
|
||||||
|
],
|
||||||
onSubmitted: (text) {
|
onSubmitted: (text) {
|
||||||
// fix for library for now
|
// fix for library for now
|
||||||
// it sets the types for the callback incorrectly
|
// it sets the types for the callback incorrectly
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue