androidx.compose.foundation.layout

Vertical

Interface · from org.jetbrains.compose.foundation:foundation-layout:1.12.2

No hand-written docs yet.

Used to specify the vertical arrangement of the layout's children in layouts like Column.

interface Vertical

Kinds of Vertical

Anywhere a Vertical is expected, you can pass any of these.

How to get one

Ready-made values and functions that return it

Or create one of the kinds listed above.

Used by

Parameters that take a Vertical.

Properties

spacing

val spacing: Dp

Spacing that should be added between any two adjacent layout children.

Functions

arrange

fun Density.arrange(
    totalSize: Int,
    sizes: IntArray,
    outPositions: IntArray,
)

Vertically places the layout children.

Library docs

Used to specify the vertical arrangement of the layout's children in layouts like Column.