How to give character limit to OutlinedTextField o...
# compose
c
How to give character limit to OutlinedTextField or TextField ?? I do not see this attribute to set
s
Copy code
TextField(
    value = textState,
    onValueChange = { value ->
        if (value.text.length <= limit)
            textState = value
    }
)
☝️ 1
c
Thanks, I actually did in this way