Schema Copy
{
"$id": "/schema/Presentations/Column/1.0/index.json",
"type": "object",
"title": "Column",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"PresentationType"
],
"properties": {
"PresentationType": {
"enum": [
"Column"
],
"type": "string",
"description": "A Column in Flutter arranges its children vertically, adjusting its size to fit their combined heights, making it ideal for creating lists, forms, and vertical layouts."
},
"CrossAxis": {
"enum": [
"Start",
"End",
"Center",
"SpaceBetween",
"SpaceAround",
"SpaceEvenly"
],
"type": "string",
"description": "Determines how the children are aligned along the cross axis (horizontal axis in a Column)"
},
"MainAxis": {
"enum": [
"End",
"Center",
"SpaceBetween",
"SpaceAround",
"SpaceEvenly"
],
"type": "string",
"description": "Determines how the children are aligned along the main axis (vertical axis in a Column)"
},
"Children": {
"type": "array",
"description": "The list of widgets to be displayed in this Column.",
"items": {
"$ref": "/schema/shared/Widget/1.0/index.json"
}
}
},
"examples": [
{
"PresentationType": "Column",
"CrossAxis": "Center",
"Children": [
{
"PresentationType": "Text",
"Text": "Title",
"FontWeight": "bold",
"FontSize": 22
},
{
"PresentationType": "SizedBox",
"Height": 8
},
{
"PresentationType": "Text",
"Text": "Supporting copy",
"Color": "#666666"
}
]
}
],
"x-icon": "<svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"8\" y=\"3\" width=\"8\" height=\"18\" rx=\"1\"/><path d=\"M8 9h8M8 15h8\"/></svg>",
"x-family": "Presentations",
"x-name": "Column",
"x-version": "1.0",
"x-source-package": "zero-schema"
}
{
"PresentationType": "Column",
"CrossAxis": "Center",
"Children": [
{
"PresentationType": "Text",
"Text": "Title",
"FontWeight": "bold",
"FontSize": 22
},
{
"PresentationType": "SizedBox",
"Height": 8
},
{
"PresentationType": "Text",
"Text": "Supporting copy",
"Color": "#666666"
}
]
}