androidx.compose.foundation.lazy.staggeredgrid
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 LazyStaggeredGrid arrangements on corresponding axis. If size is larger than container size, the cell will be size to match the container.
class FixedSize(
size: Dp,
) : StaggeredGridCells
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 LazyStaggeredGrid
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 LazyVerticalStaggeredGrid 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.