Skip to content

Instantly share code, notes, and snippets.

@zsoltk
Created July 28, 2021 07:39
Show Gist options
  • Save zsoltk/05ab0418c901f581ed6ba97735f5c9c3 to your computer and use it in GitHub Desktop.
Save zsoltk/05ab0418c901f581ed6ba97735f5c9c3 to your computer and use it in GitHub Desktop.
@Composable
fun Board() {
Box(Modifier.fillMaxSize().aspectRatio(1f)) {
Column {
for (rank in 8 downTo 1) {
Row(modifier = Modifier.weight(1f)) {
for (file in 1..8) {
Square(Modifier.weight(1f).fillMaxSize(), /* other params */)
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment