Created
March 23, 2022 08:17
-
-
Save Farhandroid/85fb857695c05dd2355d7f7226294093 to your computer and use it in GitHub Desktop.
ComposableState
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
@Composable | |
fun Content() { | |
var name by remember { mutableStateOf("") } | |
Column(modifier = Modifier.padding(16.dp)) { | |
Text( | |
text = "Hello, $name", | |
modifier = Modifier.padding(bottom = 8.dp), | |
style = MaterialTheme.typography.h5 | |
) | |
OutlinedTextField( | |
value = name, | |
onValueChange = { name = it}, | |
label = { Text("Name") } | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment