INNER CODE UNIT · Kotlin

columnSpan

IacobIonut01/ReFra · commonMain/androidx/compose/foundation/layout/Grid.kt:251

        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
 * respective axes.
 *

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…