Nat Strangerweather
02/17/2022, 5:56 PMLazyVerticalGrid
I want these pieces to move outside of the grid. How can I do it? At the moment, they are moving but then disappear when they reach the edge of the LazyVerticalGrid
. 🧵@Composable
fun Board() {
Box(modifier = Modifier.fillMaxSize(), contentAlignment = Alignment.BottomCenter) {
LazyVerticalGrid(
cells = GridCells.Fixed(7),
contentPadding = PaddingValues(7.dp),
) {
items(49) { index ->
Piece(index)
}
}
}
}
theapache64
02/17/2022, 6:51 PMNat Strangerweather
02/17/2022, 6:59 PM