A Masonry Layout arranges items of different heights into columns, like a photo gallery or a news feed. Each item goes into whichever column is currently shortest, so the columns stay roughly even without leaving gaps.
| Option | Behavior |
|---|---|
| Column Assignment | Shortest assigns each child to the shortest column. Round Robin cycles through columns in order. |
| Column sizing | Layout fits assigned content, Fill shares remaining space by weight, and Fixed uses a specified size. |
| Column minimum / maximum | Limit each column's size. A maximum of zero means no maximum. |
| Column Gap / Stack Gap | Space between columns and between items within each column. |
| Column alignment | Align content within an individual column. |
| Layout alignment | Align the complete set of columns within the parent's available space. |
Changing an item's size can move the items after it into different columns. If items should always stay in the same column, use Round Robin, which places items into columns in order: first, second, third, then back to the first.
Create three Fill columns with a Column Gap and Stack Gap of 10, and give the parent a Fixed width. Add cards whose height is set to Layout so they grow to fit their text. Short and tall cards will pack together into three even columns, and resizing the parent widens every column.