Class

FlexAlignSelf

Defines the cross-axis alignment for a single flex item, overriding the container's FlexAlignItems.

Source set: Common
public class FlexAlignSelf @PublishedApi internal constructor(private val bits: Int)

Defines the cross-axis alignment for a single flex item, overriding the container's FlexAlignItems.

This controls how an individual item is positioned perpendicular to the main axis within its respective line.

Functions

toString

Source set: Common
override fun toString(): String

Members

Companion

Source set: Common
public companion object

Properties

Auto

Source set: Common
public inline val Auto: FlexAlignSelf

Inherits the alignment from the container's FlexBoxConfigScope.alignItems. This is the default value.

Start

Source set: Common
public inline val Start: FlexAlignSelf

The item is aligned toward the cross-start edge of its line.

End

Source set: Common
public inline val End: FlexAlignSelf

The item is aligned toward the cross-end edge of its line.

Center

Source set: Common
public inline val Center: FlexAlignSelf

The item is centered along the cross axis within its line.

Stretch

Source set: Common
public inline val Stretch: FlexAlignSelf

Stretches the item to fill the cross axis size of its line.

The item stretches to fill the line even if an explicit cross-axis size was set on the item, unless a modifier that enforces size like androidx.compose.foundation.layout.requiredSize is used.

Baseline

Source set: Common
public inline val Baseline: FlexAlignSelf

The item is aligned such that its baseline matches the baseline of other baseline-aligned items in the line. Items without a baseline fall back to Start alignment.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: