Padding, Size & fillMaxWidth
Control space inside and around a Composable.
Meet the Modifier
A Modifier is how you adjust a Composable: its size, spacing, and decoration. You chain calls onto it, one tweak at a time. 🧩
Pass It In
Almost every Composable takes a modifier parameter. You pass it as the first thing to change about that element.
Text(
text = "Hi",
modifier = Modifier
)All lessons in this course
- Padding, Size & fillMaxWidth
- Background, Border & Clip
- Why Modifier Order Matters
- weight & Flexible Sizing