0Pricing
Jetpack Compose Academy · Lesson

Writing a Layout Composable

Measure children and position them by hand.

Meet the Layout Composable

To build your own arrangement, you reach for the Layout composable. It hands you the raw measure-and-place power directly. 🛠️

Layout Takes Content and a Lambda

Layout accepts your child content plus a measure lambda. The lambda receives the measurables and the constraints to work with.

Layout(content = content,
  modifier = modifier) { measurables, constraints ->
  // measure and place
}

All lessons in this course

  1. The Measure & Place Model
  2. Writing a Layout Composable
  3. Constraints & Intrinsic Measurements
  4. A FlowRow That Wraps Chips
← Back to Jetpack Compose Academy