Common
@LayoutScopeMarker
@JvmDefaultWithCompatibility
@ExperimentalFlexBoxApi
interface FlexBoxScope
Scope for the content of a FlexBox. Provides the flex modifier for configuring individual flex item properties.
Functions
flex
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
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. |