The Modifier System
Size, pad, and style with modifiers.
What Is a Modifier?
A Modifier decorates or configures a composable: its size, padding, background, click behavior, and more. Almost every composable accepts a modifier parameter.
Chaining
Modifiers are chained: each function returns a new modifier, so you call one after another.
Modifier
.padding(16.dp)
.size(100.dp)
.background(Color.LightGray)All lessons in this course
- Column, Row, and Box
- The Modifier System
- Alignment and Arrangement
- Lists with LazyColumn