Skip to main content
box is a general-purpose container. Its children can overlap; the last rendered child is drawn on top.

Properties

box has no node-specific properties. horizontalAlignment and verticalAlignment on the style align every child inside the same box. Children stay stacked, and later children render on top. See How layout alignment works.

Example

Use clip: true when overlaid children must stay inside rounded or bounded edges.