Created
May 11, 2021 00:16
-
-
Save nglauber/eda21a5d5b150c6df343dca1da692271 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
@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