Widget Gallery

This page describes the widgets available in Sky. These widgets are
general-purpose and don’t offer an opinion about the visual style of your app.

Container

Container is a general-purpose widget that combines several basic widgets in
order to make them easier to use.

Layout models

There are two flex layout models:

The direction along which the widgets are laid out is called the
main direction and the other axis is called the cross direction.
These flex widgets size themselves to the maximum size permitted by
its parent, unless that would be infinite size, in which case they
shrink-wrap their children. For details, see flex.md.

Each child of a flex widget is either flexible or inflexible.
The flex first lays out its inflexible children and subtracts their
total length along the main direction to determine how much free space
is available. The flex then divides this free space among the flexible
children in a ratio determined by their flex properties.

The alignItems property determines how children are positioned in
the cross direction. The justifyContent property determines how the
remaining free space (if any) in the main direction is allocated.

There is also a stacking layout model:

Positioning and sizing

Painting effects