Skip to main content

TableRow

StacTableRow allows you to define the Flutter TableRow widget using JSON. To know more about the TableRow widget in Flutter, refer to the official documentation.

Properties​

PropertyTypeDescription
decorationStacDecoration?Defines the decoration to be painted behind this row. See StacDecoration.
childrenList<Map<String, dynamic>>Defines the widgets the comprise the cells in this row. Use StacTableCell to control the individual alignment of each cell in a row.

Example​

{
"type": "tableRow",
"children": [
{
"type": "tableCell",
"child": {
"type": "container",
"color": "#40000000",
"height": 50.0,
"child": {
"type": "center",
"child": {
"type": "text",
"data": "Header 1"
}
}
}
},
{
"type": "tableCell",
"child": {
"type": "container",
"color": "#40000000",
"height": 50.0,
"child": {
"type": "center",
"child": {
"type": "text",
"data": "Header 2"
}
}
}
},
{
"type": "tableCell",
"child": {
"type": "container",
"color": "#40000000",
"height": 50.0,
"child": {
"type": "center",
"child": {
"type": "text",
"data": "Header 3"
}
}
}
}
]
},