androidx.compose.foundation.lazy.grid
FixedSize
Class · from org.jetbrains.compose.foundation:foundation:1.12.2
No hand-written docs yet.
Defines a grid with as many rows or columns as possible on the condition that every cell takes exactly size space. The remaining space will be arranged through LazyGrid arrangements on corresponding axis. If size is larger than container size, the cell will be size to match the container.
class FixedSize(
size: Dp,
) : GridCells
Is a
How to get one
Create it
FixedSize(size)constructor
Library docs
Defines a grid with as many rows or columns as possible on the condition that every cell
takes exactly size space. The remaining space will be arranged through LazyGrid
arrangements on corresponding axis. If size is larger than container size, the cell will be
size to match the container.
For example, for the vertical LazyGrid FixedSize(20.dp) would mean that there will be as
many columns as possible and every column will be exactly 20.dp. If the screen is 88.dp wide
tne there will be 4 columns 20.dp each with remaining 8.dp distributed through
Arrangement.Horizontal.