set max char size for input field
This commit is contained in:
parent
425b7ddcf1
commit
5494019be5
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue