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

StaggeredGridItemSpan

Span defines a number of lanes (columns in vertical grid/rows in horizontal grid) for staggered grid items.

Source set: Common
public class StaggeredGridItemSpan private constructor(internal val value: Int)

Span defines a number of lanes (columns in vertical grid/rows in horizontal grid) for staggered grid items. Two variations of span are supported:

  • item taking a single lane (SingleLane);
  • items.

  • item all lanes in line (FullLine). By default, staggered grid uses SingleLane for all

Members

Companion

Source set: Common
public companion object

Properties

FullLine

Source set: Common
public val FullLine: StaggeredGridItemSpan = StaggeredGridItemSpan(0)

Force item to occupy whole line in cross axis.

SingleLane

Source set: Common
public val SingleLane: StaggeredGridItemSpan = StaggeredGridItemSpan(1)

Force item to use a single lane.