<div class='sourceset sourceset-android'>Android</div>

```kotlin
@RequiresApi(31)
    public class Adaptive(public val minSize: Dp) : GridCells()
```

Defines a grid with as many columns as possible on the condition that every cell has at least
[minSize](#minsize) space and all extra space distributed evenly.

For example, for the vertical [LazyVerticalGrid](/jetpack-compose/androidx.glance/glance-appwidget/composable-functions/LazyVerticalGrid) 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.

#### Parameters

| | |
| --- | --- |
| minSize | fixed width of each column in LazyVerticalGrid |