Ruben Quadros
Box
LazyVerticalGrid
java.lang.IllegalArgumentException: LazyVerticalGrid's width should be bound by parent.
Box(modifier = modifier.horizontalScroll(rememberScrollState())) { LazyVerticalGrid( //modifier = Modifier, columns = GridCells.Fixed(12) ) { items(20) { Box(modifier = Modifier.width(60.dp).height(20.dp).padding(8.dp).background(Color.Red)) } } }
Stylianos Gakis
BoxWithConstraints (modifier = Modifier.fillMaxSize().horizontalScroll(rememberScrollState())) { LazyVerticalGrid( modifier = Modifier.fillMaxHeight().width(constraints.minWidth.dp), columns = GridCells.Fixed(12) ) { items(400) { Box(modifier = Modifier.width(80.dp).height(80.dp).padding(8.dp).background(Color.Red)) } } }
A modern programming language that makes developers happier.