loloof64
@Composable fun ItemsGrid(size: Dp, modifier: Modifier = Modifier) { return Box(modifier = modifier.background(color = Color(LegacyColor.RED))) { Column(modifier = Modifier.padding(size * 0.055f) .size(size * 0.88f)) { (0 until 8).forEach { row -> Row(modifier = Modifier.size(width = size * 0.88f, height = size * 0.11f)) { (0 until 8).forEach { col -> GridCell( white = (row + col) % 2 == 0, modifier = Modifier .size(size * 0.11f) ) } } } } } }
A modern programming language that makes developers happier.