INNER CODE UNIT · Kotlin

GridConfigurationScopeImpl

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

private class GridConfigurationScopeImpl(density: Density, override val constraints: Constraints) :
    GridConfigurationScope, Density by density {
    val columnSpecs = mutableLongListOf()
    val rowSpecs = mutableLongListOf()
    var columnGap: Dp = 0.dp
    var rowGap: Dp = 0.dp

    override var flow: GridFlow = GridFlow.Row

    override fun column(size: Dp) {
        column(GridTrackSize.Fixed(size))
    }

    override fun column(weight: Fr) {
        column(GridTrackSize.Flex(weight))
    }

    override fun column(percentage: Float) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…