FlexAlignItems

Class

Common
@ExperimentalFlexBoxApi
value class FlexAlignItems @PublishedApi internal constructor(private val bits: Int)

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.

Companion Object

Properties

Common
inline val Start

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

Common
inline val End

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

Common
inline val Center

Items are centered along the cross axis within their line.

Common
inline val Stretch

Items are stretched to fill the cross axis size of their line.

Common
inline val Baseline

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