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

FlexConfigScope

Scope for configuring flex item properties within a FlexBox.

FlexConfigScopeSample

@Sampled
@Composable
fun FlexConfigScopeSample() {

    FlexBox {
        Box(
            Modifier.flex {
                grow(1f) // Grow to fill space
                shrink(0f) // Don't shrink below basis
                basis(100.dp) // Start at 100dp
                alignSelf(FlexAlignSelf.Center) // Center this item
            }
        )
    }
}

Content updated: