Package limn.scene.layout
package limn.scene.layout
Layout containers:
Row and Column
over the shared simplified flexbox Flex, with
Expanded taking a weighted share of the leftover main-axis
space; Stack overlays children,
Padding wraps one child in edge insets, and
SizedBox fixes a dimension or spaces rigidly. All of them are
plain widgets: a container an application writes participates in measure and layout on
the same terms.-
ClassDescriptionVertical
Flex: children stack top to bottom.Simplified flexbox shared byColumnandRow: children flow along the main axis with an optionalgap;Expandedchildren split the leftover main-axis space by flex weight; alignment controls the distribution of leftovers (Flex.MainAlignment) and cross-axis placement (Flex.CrossAlignment, including STRETCH).Cross-axis placement.How leftover space along the layout axis is distributed, on two vocabularies that coexist on purpose.Wraps one child with edge insets.HorizontalFlex: children flow left to right.Forces a fixed width and/or height (unset dimensions pass through to the child, or collapse to zero without one).Overlays children on top of each other (later children on top; the base for overlays and modal dialogs).Where a child sits in the stack's box, on two vocabularies that coexist on purpose.