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

FlexBoxScope

Scope for the content of a FlexBox.

Source set: Common
public interface FlexBoxScope

Scope for the content of a FlexBox. Provides the flex modifier for configuring individual flex item properties.

Functions

flex

Source set: Common
@Stable public fun Modifier.flex(flexConfig: FlexConfig): Modifier

Configures the flex properties of this element within the FlexBox using the provided FlexConfig.

Parameters

flexConfig The flex configuration to apply.

flex

Source set: Common
public fun Modifier.flex(flexConfig: FlexConfigScope.() -> Unit): Modifier

Configures the flex properties of this element within the FlexBox using a configuration lambda.

This modifier allows you to specify how an individual item should share available space (grow, shrink, basis) and how it aligns itself along the cross axis (alignSelf).

Parameters

flexConfig A lambda that configures the flex properties within a FlexConfigScope.