Stylianos Gakis
09/10/2024, 11:44 PMLazyVerticalGrid
, is there a way to make sure that all items in the same horizontal group are measured with the same height?
So that when looking at one of the rows there are no discrepancies on their height between the items?
Doing a fillMaxHeight
does not work since their constraints give them infinite height, and I do not see there being any custom modifier for that scope like BoxScope
gets with matchParentSize()
Stylianos Gakis
09/10/2024, 11:46 PMPoulastaa
09/11/2024, 7:14 AMaspectRatio(1f)
on item modifier
LazyVerticalGrid(
columns = GridCells.Fixed(4),
){
item{
LibraryPlaylistGird(
modifier = Modifier
.aspectRatio(1f)
)
}
}
LibraryPlaylistGird(
modifier: Modifier = Modifier,
){
Column(
modifier = modifier,
) {
}
}
every item will be same sizeStylianos Gakis
09/11/2024, 9:08 AMPoulastaa
09/11/2024, 9:21 AMsize
modifier that would be bad for different screen size
and filMaxSize
is not an option.
you can calculate width of the screen and then assign size to them item but that is what aspectRatio
does.
sorry maybe I don't have knowledge to help :)Stylianos Gakis
09/11/2024, 12:21 PMColton Idle
01/10/2025, 4:07 PMStylianos Gakis
01/10/2025, 4:42 PMColton Idle
01/10/2025, 8:11 PM