<div class='sourceset sourceset-common'>Common</div>

```kotlin
class FixedSize(private val size: Dp) : StaggeredGridCells
```

Defines a grid with as many rows or columns as possible on the condition that every cell
takes exactly [size](/jetpack-compose/androidx.compose.ui/ui-geometry/classes/Size) space. The remaining space will be arranged through `LazyStaggeredGrid`
arrangements on corresponding axis. If [size](/jetpack-compose/androidx.compose.ui/ui-geometry/classes/Size) is larger than container size, the cell will be
size to match the container.

For example, for the vertical [LazyVerticalStaggeredGrid](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/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`.