on-internet
← Community

Request Focus on TextField in jetpack compose

Stack Overflow ·

How to auto focus on textfield in jetpack compose. When i click on textfield and start typing on it. Meantime when i click back button,then when i'm try to click on textfield, nothing happens. val textState = remember { mutableStateOf(TextFieldValue()) } TextField( modifier = Modifier.fillMaxWidth(), value = textState.value, onValueChange = { value : TextFieldValue -> textState.value = value } )

Comments

Sign in or sign up to comment and upvote.

No comments yet.