Alignment and Arrangement
Position children precisely.
Positioning Children
Inside a Column or Row, two settings control where children sit: alignment (across the layout) and arrangement (along the layout).
Column Alignment
In a Column, children stack vertically. horizontalAlignment controls their horizontal position — left, center, or right.
Column(horizontalAlignment = Alignment.CenterHorizontally) {
Text("Centered")
Text("Also centered")
}All lessons in this course
- Column, Row, and Box
- The Modifier System
- Alignment and Arrangement
- Lists with LazyColumn