Modifiers

One parameter, endless composition

Every layout composable β€” Text, Row, Column, Box, Button β€” accepts a modifier: Modifier parameter. A Modifier is a chain of instructions for how a composable should be measured, drawn, and behave: how much padding it gets, what background it paints, whether it responds to taps.

You build a chain by calling methods on Modifier, dot after dot β€” and here's the part that trips people up: order matters, because each step wraps the result of the one before it.