Skip to content

Instantly share code, notes, and snippets.

@Starchild13
Created December 30, 2023 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Starchild13/1db120dd8c25521659caf9a6c470d3ef to your computer and use it in GitHub Desktop.
Save Starchild13/1db120dd8c25521659caf9a6c470d3ef to your computer and use it in GitHub Desktop.
Flow Column Example
@OptIn(ExperimentalLayoutApi::class)
@Composable
private fun FlowColumnExample() {
val textChipRememberOneState = remember { mutableStateOf("") }
FlowColumn(modifier = Modifier.padding(12.dp), verticalArrangement = Arrangement.spacedBy(8.dp)) {
listOf("Ronnie", "Harun", "Allela", "Tabby", "Jemimah", "Jessica", "Brayan", "Theo",
"Frank", "Juma", "David", "Hannah", "Nathan", "Auwal", "Aniedi", "Sodiq")
.forEach { name -> ChipItem(name, textChipRememberOneState) }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment