Instruction

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Understanding Flow Layouts

Compose offers two variants of the flow layout construct:

Exploring FlowRow and FlowColumn

Before working with Flow Layouts, it’s worth exploring their inner workings. Here are the signatures of FlowRow and FlowColumn:

Using Flow Layouts

Flow layouts are excellent candidates for building UI where either the container items are of variable length or the UI must adapt to the amount of data coming in.

Using Item Weights in FlowRow

In cases where you want to control the width of individual items in a FlowRow, you can use weights to grow the item based on the supplied factor and the line’s available space.

See forum comments
Download course materials from Github
Previous: Introduction Next: Demo