Skip to content

Instantly share code, notes, and snippets.

@nglauber
Created May 11, 2021 00:16
Show Gist options
  • Save nglauber/eda21a5d5b150c6df343dca1da692271 to your computer and use it in GitHub Desktop.
Save nglauber/eda21a5d5b150c6df343dca1da692271 to your computer and use it in GitHub Desktop.
@Composable
fun Greeting(name: String) {
Column(Modifier.fillMaxSize()) {
Column(
Modifier
.fillMaxWidth()
.weight(1f)
.verticalScroll(
rememberScrollState()
)
) {
for (i in 1..50) {
var text by remember(i) {
mutableStateOf("Text $i")
}
TextField(value = text, onValueChange = { text = it })
}
}
Button(onClick = {}) {
Text("Save")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment