Created
April 26, 2022 11:39
-
-
Save cp-radhika-s/cd2b55b382705fd006acfdb86d4b26d3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val keyboardController = LocalSoftwareKeyboardController.current | |
var text by remember { | |
mutableStateOf("") | |
} | |
TextField( | |
value = text, | |
onValueChange = { text = it }, | |
keyboardOptions = KeyboardOptions(imeAction = ImeAction.Done), | |
keyboardActions = KeyboardActions( | |
onDone = { keyboardController?.hide() }), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment