Defines the default alignment for items along the cross axis within their respective lines. This controls how items are positioned perpendicular to the main axis. This can be overridden for an individual item using FlexConfigScope.alignSelf.

Summary

Public companion properties

FlexAlignItems

Items are aligned such that their baselines match along the cross axis.

Cmn
FlexAlignItems

Items are centered along the cross axis within their line.

Cmn
FlexAlignItems

Items are aligned toward the cross-end edge of their line.

Cmn
FlexAlignItems

Items are aligned toward the cross-start edge of their line.

Cmn
FlexAlignItems

Stretches items to fill the cross axis size of their line.

Cmn

Public functions

open String
Cmn

Public companion properties

Baseline

val Baseline: FlexAlignItems

Items are aligned such that their baselines match along the cross axis. Items without a baseline fall back to Start alignment.

Center

val Center: FlexAlignItems

Items are centered along the cross axis within their line.

End

val End: FlexAlignItems

Items are aligned toward the cross-end edge of their line.

Start

val Start: FlexAlignItems

Items are aligned toward the cross-start edge of their line.

Stretch

val Stretch: FlexAlignItems

Stretches items to fill the cross axis size of their line.

Items stretch to fill the line even if an explicit cross-axis size was set on the item, unless overridden by FlexAlignSelf or a modifier that enforces size like androidx.compose.foundation.layout.requiredSize.

Public functions

toString

open fun toString(): String