Pierre Schrodinger
07/03/2023, 5:42 PMLazyVerticalGrid
always take the shape of its content? For example: LazyVerticalGrid(columns = GridCells.Fixed(3)) { ...
full of images of the same size produces this result. I outlined one of the grid cells. Why didn't it take the shape of the image which is its only content? It almost looks as if it can't stretch the image that much for some reason, since it would be considerably bigger that way.Stylianos Gakis
07/03/2023, 5:52 PMBox(Modifier.fillMaxSize().background(Color.Red))
and see if that fills it up?
If yes, maybe it's your image that's the issue here.Pierre Schrodinger
07/03/2023, 6:19 PMImage
with no modifiers apart from clickable
Stylianos Gakis
07/03/2023, 6:44 PMChris Sinco [G]
07/03/2023, 7:05 PMPierre Schrodinger
07/03/2023, 8:25 PMcropped in the available space
But what other than the image itself decides on the available space? This is counterintuitive to me.
Pierre Schrodinger
07/03/2023, 8:26 PMtry Fill
contentScale = ContentScale.FillWidth
does work indeed, thank you!Stylianos Gakis
07/03/2023, 10:35 PM