Layout widgets

Layout widgets answer one question before anything else in the user interface does: how should space be divided, constrained, layered, and protected?
The choice follows the relationship between the children. A row preserves a horizontal sequence; a grid makes both axes explicit; a stack layers children in one region. Using a more complicated layout does not remove the need to define those relationships, and often makes overflow harder to explain.

How to choose among layout widgets

Start with the simplest structure that matches the reading order.
Use a vertical flow first when the screen reads top to bottom. Use a horizontal flow when side-by-side comparison matters. Move to grids when repeated content benefits from a matrix. Use stacks and positioned layouts when layering is the point, not just ordinary arrangement.
Once the overall structure is clear, add helpers for centering, safe areas, ratio preservation, wrapping, or split panes where those patterns are genuinely needed.

Core linear and constraint widgets

These are the first widgets to reach for on most screens.
Widget
Dedicated page
When to choose it
Container
You need one child plus padding, sizing, background, or constraint control
Row
Children should stay in a horizontal sequence
Column
Children should stay in a vertical sequence
Spacer
You need fixed or flexible empty space
Scroll
Content may legitimately exceed the viewport
Align
A child needs alignment inside available bounds
Center
You only need centered placement

Higher-level stack and flow helpers

These widgets express layout patterns that are already common enough to deserve named helpers.
Widget
Dedicated page
When to choose it
HStack
You want a higher-level horizontal stack helper
VStack
You want a higher-level vertical stack helper
Wrap
Repeated items should flow onto new lines as width changes
SimpleGrid
You want a simpler grid authoring surface
SplitView
The screen is naturally a split-pane layout
SplitDirection
You need the supporting split orientation type

Grid and layered layouts

Use these when a purely linear layout is no longer the right shape.
Widget
Dedicated page
When to choose it
Grid
Repeated content belongs in rows and columns
GridItem
A child needs span or placement rules inside a grid
ZStack
Children should share the same visual area in layers
Positioned
A layered child needs explicit placement
Overlay
Content and overlay content share the same region deliberately

Edge protection, ratios, and responsive helpers

These widgets become important when a layout needs to react to host conditions or special constraints.
Widget
Dedicated page
When to choose it
SafeArea
Content should avoid host insets such as mobile safe areas
AspectRatio
A child should preserve a specific width-to-height ratio
LayoutBuilder
The build output depends directly on current constraints
absolute_fill(...)
A child should fill the stacked bounds
Clip
A child must be clipped to a region
Transform
A child needs visual transformation
Composite
You need composition or repaint-boundary control
FocusScope
Group focus; enable a barrier only for deliberate containment
InteractiveViewer
One child needs a runtime pan-and-zoom camera
InfiniteCanvas
Nodes and edges need a declarative, pannable world

Practical cross-reference

For themed and responsive screen composition, read Layout and widgets. For a specific widget, use the Widget catalog.