dvStudioLayoutProperties top-level property
How a box lays its children out, as the inspector offers it.
Implementation
final List<DVStudioLayoutProperty> dvStudioLayoutProperties =
<DVStudioLayoutProperty>[
const DVStudioLayoutProperty('spacing', DVStudioPropertyKind.number),
const DVStudioLayoutProperty('mainAxis', DVStudioPropertyKind.choice,
choices: dvStudioAlignNames),
const DVStudioLayoutProperty('crossAxis', DVStudioPropertyKind.choice,
choices: dvStudioCrossAlignNames),
// Whether the box scrolls its own axis: a list down, a row across. Almost
// every screen in a design is taller than the device it runs on.
const DVStudioLayoutProperty('scroll', DVStudioPropertyKind.flag),
// How many columns a grid has. The renderer read it, the exporter wrote it
// and a document could override it per breakpoint, while the inspector
// offered no control for it at all -- so a grid built in the builder was
// permanently two columns wide. That is the drift this list exists to
// prevent, in this list.
const DVStudioLayoutProperty(
'columns',
DVStudioPropertyKind.number,
layouts: <String>['grid'],
),
];