Row

A horizontal layout container. It places its children in a single row, from left to right.

Properties

NameTypeDefaultDescription
horizontalAlignmentStringStartAlignment of children along the horizontal axis. Options: Start, Center, End, SpaceBetween, SpaceAround, SpaceEvenly.
verticalAlignmentStringCenterVerticallyAlignment of children along the vertical axis. Options: Top, CenterVertically, Bottom.
paddingStringSpace around the content. Accepts 1, 2 or 4 integers (in dp): ‚8‘ (all), ‚8 16‘ (vertical horizontal), or ‚8 16 16 8‘ (top right bottom left).
spacingString0dpSpacing between child elements. Example: ‚8dp‘.
backgroundStringOptional background color for the Row. Example: ‚#FFFFFF‘.

Allowed Roots

Allowed Children

← Back to Element Reference