Documentation Index
Fetch the complete documentation index at: https://docs.stac.dev/llms.txt
Use this file to discover all available pages before exploring further.
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
| 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
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"
}
}
}
}
]
}