Skip to content

Instantly share code, notes, and snippets.

@kasem-sm
Created February 13, 2022 02:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kasem-sm/ae5f9532217fc463d19f9630e15bf112 to your computer and use it in GitHub Desktop.
Save kasem-sm/ae5f9532217fc463d19f9630e15bf112 to your computer and use it in GitHub Desktop.
@Composable
fun MyScreen() {
// val focusManager = LocalFocusManager.current
Column {
// Username Field
MyTextField(...)
// Password Field
MyTextField(
text = "Enter your Password",
onTextChange = { /** Update state **/ },
keyboardOptions = KeyboardOptions(
imeAction = ImeAction.Done
),
keyboardActions = KeyboardActions(
onDone = {
// This would do the same as the register button would
// registerUser()
}
)
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment