baseProps top-level constant
The base node types and the props the base shows for each (in this order; a key the type does not declare is skipped).
Implementation
const Map<String, List<String>> baseProps = {
'canvas': [],
'column': ['mainAxisAlignment', 'crossAxisAlignment', 'spacing', 'scrollable'],
'row': ['mainAxisAlignment', 'crossAxisAlignment', 'spacing', 'wrap', 'runSpacing'],
'flex': ['direction', 'mainAxisAlignment', 'crossAxisAlignment', 'spacing', 'wrap'],
'stack': [],
'box': [],
'text': ['text', 'style', 'textAlign', 'maxLines', 'overflow'],
'icon': ['icon', 'color', 'size'],
'spacer': [],
'divider': ['thickness', 'color'],
'filledButton': ['label', 'icon', 'style', 'enabled'],
'elevatedButton': ['label', 'icon', 'style'],
'outlinedButton': ['label', 'icon', 'style'],
'textButton': ['label', 'icon', 'style'],
'iconButton': ['icon', 'style'],
'textField': ['initialValue', 'decoration', 'keyboardType', 'obscureText', 'maxLines'],
'checkbox': ['value', 'activeColor'],
'switch': ['value', 'activeTrackColor'],
'radio': ['value', 'groupValue', 'activeColor'],
'slider': ['value', 'min', 'max', 'divisions', 'activeTrackColor'],
'dropdown': ['items', 'value', 'hint'],
'segmentedButton': ['segments', 'selected'],
'listView': ['scrollDirection', 'spacing', 'scrollable'],
'gridView': ['crossAxisCount', 'minCrossAxisExtent', 'mainAxisSpacing', 'crossAxisSpacing', 'shrinkWrapRows'],
};