0Pricing
Kotlin Multiplatform Academy · Lesson

Layouts, Modifiers & Theming

Build adaptive shared screens with Material.

Three Layout Building Blocks

Almost every screen is built from Column, Row and Box. Column stacks children vertically, Row places them side by side, Box layers them.

Column {
    Text("Top")
    Text("Bottom")
}

Rows Place Items Side by Side

A Row arranges its children horizontally. Reach for it when you want a label and a value, or an icon next to text, on one line.

Row {
    Text("Price:")
    Text("$9")
}

All lessons in this course

  1. Enable Compose Multiplatform
  2. Layouts, Modifiers & Theming
  3. State & Recomposition in Shared UI
  4. Host Shared UI on iOS & Desktop
← Back to Kotlin Multiplatform Academy