-
-
Save Starchild13/2d3ae4b25bc44437163c4310c5ffb899 to your computer and use it in GitHub Desktop.
Flow Row Example
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
@OptIn(ExperimentalLayoutApi::class) | |
@Composable | |
private fun FlowRowExample() { | |
// Remember the state of a selected chip. | |
val textChipRememberOneState = remember { mutableStateOf("") } | |
// Arrange chips in a horizontal flow with wrapping. | |
FlowRow(Modifier.padding(8.dp)) { | |
// Instantiate individual chips. | |
ChipItem("Team: Arsenal",textChipRememberOneState) | |
ChipItem("Position: Goal Keeper",textChipRememberOneState) | |
ChipItem("T-shirt number: 13",textChipRememberOneState) | |
ChipItem("Players Name: Aaron Ramsdale",textChipRememberOneState) | |
ChipItem("Your bet that your team wins: $100 ",textChipRememberOneState) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment