I want to set my cursor position in a TextField at end when i select texts from a List of texts in j...
t
I want to set my cursor position in a TextField at end when i select texts from a List of texts in jetpack compose, I am using a MutableState of String to maintain a state of text inside a textfield as it can have values from different composables, Can anyone please help me
z
You’d need to pass a
TextFieldValue
to the field composable instead of a String - then you can specify the selection range.
t
Yeah I used that, It worked, Thanks 🙌
2996 Views