androidx.compose.foundation.lazy.staggeredgrid
Adaptive
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 has at least minSize space and all extra space distributed evenly.
class Adaptive(
minSize: Dp,
) : StaggeredGridCells
Is a
How to get one
Create it
Adaptive(minSize)constructor
Library docs
Defines a grid with as many rows or columns as possible on the condition that every cell has
at least minSize space and all extra space distributed evenly.
For example, for the vertical LazyVerticalStaggeredGrid Adaptive(20.dp) would mean that
there will be as many columns as possible and every column will be at least 20.dp and all the
columns will have equal width. If the screen is 88.dp wide then there will be 4 columns 22.dp
each.