https://kotlinlang.org logo
#compose
Title
# compose
r

Rajashekar

03/05/2021, 3:40 PM
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

Filip Wiesner

03/05/2021, 4:34 PM
You hold the state. Just don't let the state mutate to have length greater than 2.
r

Rajashekar

03/05/2021, 5:24 PM
Sure, I'll try that way.