How to Restrict input to max length_ #822
-
I have a field for ID number which has 9 digits. Is there a way to stop user from inputting more numbers after the 9th number is entered? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
infolinematrix
Aug 31, 2021
Replies: 1 comment
-
FormBuilderTextField( |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
danvick
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FormBuilderTextField(
maxLength: 9,
decoration: InputDecoration(
labelText: 'ID',
),
keyboardType: TextInputType.number,
)