You can align the content of the table by wrapping the content within the TableCell
with a Container
and then setting the appropriate Alignment
.
A simple table would be as below:
Table(
border: TableBorder.all(), // Show the border to see alignment better
children: [
TableRow(children: [
TableCell(
child: Container(
alignment: Alignment.centerRight,
child: Text("data1"),
),
),
TableCell(
child: Container(
alignment: Alignment.centerLeft,
child: Text("data2"),
),
),
TableCell(
child: Container(
alignment: Alignment.center,
child: Text("data3"),
),
)
])
],
),