Last active
December 27, 2022 07:30
-
-
Save RaheemJnr/956a979ca7726be8b3ea41153554ac72 to your computer and use it in GitHub Desktop.
a simple basic text field
This file contains 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
var input by remember { mutableStateOf("") } | |
BasicTextField( | |
modifier = Modifier | |
.wrapContentSize() | |
.padding(horizontal = 12.dp) | |
.border(width = 1.5.dp, color = Color.Black, RoundedCornerShape(12.dp)), | |
value = input, | |
textStyle = MaterialTheme.typography.h4, | |
onValueChange = { | |
input = it | |
}, | |
maxLines = 1, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment