manueldidonna
05/22/2020, 12:02 PMvar selection by state { TextRange(0, 0) }
var text by state { repository.getText() }
TextField(
value = TextFieldValue(text, selection),
onValueChange = {
selection = it.selection
// there is a a limit on the number of chars.
// The passed text is automatically truncated
text = repository.updateText(it.text)
}
)
When I exceed the number of chars, I have some problems with the keyboard that continues to record the inputs, so I have to press the delete button more times than needed.Leland Richardson [G]
05/22/2020, 4:48 PMVal Salamakha
05/26/2020, 7:19 AM