Properties
| Property | Type | Description |
|---|---|---|
| decoration | StacDecoration? | Defines the decoration to be painted behind this row. See StacDecoration. |
| children | List<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
- Dart
- JSON
- Preview
StacTableRow(
children: [
StacTableCell(
child: StacContainer(
color: '#40000000',
height: 50.0,
child: StacCenter(child: StacText(data: 'Header 1')),
),
),
StacTableCell(
child: StacContainer(
color: '#40000000',
height: 50.0,
child: StacCenter(child: StacText(data: 'Header 2')),
),
),
StacTableCell(
child: StacContainer(
color: '#40000000',
height: 50.0,
child: StacCenter(child: StacText(data: 'Header 3')),
),
),
],
)
{
"type": "tableRow",
"children": [
{
"type": "tableCell",
"child": {
"type": "container",
"color": "#40000000",
"height": 50,
"child": {
"type": "center",
"child": {
"type": "text",
"data": "Header 1"
}
}
}
},
{
"type": "tableCell",
"child": {
"type": "container",
"color": "#40000000",
"height": 50,
"child": {
"type": "center",
"child": {
"type": "text",
"data": "Header 2"
}
}
}
},
{
"type": "tableCell",
"child": {
"type": "container",
"color": "#40000000",
"height": 50,
"child": {
"type": "center",
"child": {
"type": "text",
"data": "Header 3"
}
}
}
}
]
}