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
Zach Klippenstein (he/him) [MOD]
12/22/2022, 12:34 AM
You’d need to pass a
TextFieldValue
to the field composable instead of a String - then you can specify the selection range.