🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

GridCells.Adaptive

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.

Source set: Common
public class Adaptive(private val minSize: Dp) : GridCells

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 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.

Functions

calculateCrossAxisCellSizes

Source set: Common
override fun Density.calculateCrossAxisCellSizes(
            availableSize: Int,
            spacing: Int,
        ): List<Int>

hashCode

Source set: Common
override fun hashCode(): Int

equals

Source set: Common
override fun equals(other: Any?): Boolean