INNER CODE UNIT · Kotlin
rowSpan
IacobIonut01/ReFra · commonMain/androidx/compose/foundation/layout/Grid.kt:249
val rowSpan = rows.last - rows.first + 1
val column = columns.first
val columnSpan = columns.last - columns.first + 1
return this.gridItem(row, column, rowSpan, columnSpan, alignment)
}
}
/**
* Scope for configuring the structure of a [Grid].
*
* This interface is implemented by the configuration block in [Grid]. It allows defining columns,
* rows, and gaps.
*
* The order in which [column] and [row] functions are called within the `config` block is
* important. Tracks are added to the grid definition sequentially based on these calls. For
* example, calling `column(100.dp)` twice defines two columns.
*
* Gap configuration calls ([gap], [rowGap], [columnGap]) follow a "last-call-wins" policy for their