Background, Border & Clip
Add color, outlines, and rounded shapes.
Decorate with Modifiers
Beyond sizing, modifiers can decorate a Composable. You can paint a background, draw a border, and round its corners. 🎨
Add a Background
background fills a Composable with a solid color. It paints the whole area the element occupies, including its size and fill.
Modifier.background(Color.Blue)All lessons in this course
- Padding, Size & fillMaxWidth
- Background, Border & Clip
- Why Modifier Order Matters
- weight & Flexible Sizing