Skip to content

Instantly share code, notes, and snippets.

@hkawii
Created February 27, 2022 21:24
Show Gist options
  • Save hkawii/a5191ece7928b4b2b0840214e2c5a019 to your computer and use it in GitHub Desktop.
Save hkawii/a5191ece7928b4b2b0840214e2c5a019 to your computer and use it in GitHub Desktop.
//User name text field
Column{
val focusManager = LocalFocusManager.current
AppTextField(
text = viewModel.firstName,
placeholder = "First Name",
onChange = {
viewModel.firstName = it
},
imeAction = ImeAction.Next,//Show next as IME button
keyboardType = KeyboardType.Text, //Plain text keyboard
keyBoardActions = KeyboardActions(
onNext = {
focusManager.moveFocus(FocusDirection.Down)
}
)
)
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment