Does TextField allows us to specify max length of ...
# compose
r
Does TextField allows us to specify max length of characters to enter? All I can see is it takes maxLines and singleLine. There is no support yet?
I want user restricted only to enter two characters.
f
You hold the state. Just don't let the state mutate to have length greater than 2.
r
Sure, I'll try that way.