79078379

Date: 2024-10-11 13:16:44
Score: 1
Natty:
Report link

Based on the answer in IssueTracker https://issuetracker.google.com/u/1/issues/236149640#comment8

This problem is fixed for now. At least for me, it works.

PS If it doesn't work for you, ensure you've changed the text value in the onValueChange callback in your @Preview composite! Like this:

@Preview(showBackground = true)
@Composable
private fun InputPrev() {
    var textValue by remember { mutableStateOf("Text") }
    MainTextInputField(
        text = textValue,
        onValueChange = {
            textValue = it
        }
    )
}
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Preview
  • Low reputation (0.5):
Posted by: Oleh Kuchura