如何在Table
中对齐文本?
从左起第一列(ID
),从右起第二列(Value
)。
child: Table(
children: [
TableRow(children: [
TableCell(
child: Row(
mainAxisAlignment:
MainAxisAlignment.spaceAround,
children: <Widget>[
new Text('ID'),
new Text('Value'),
],
),
)
]),
答案 0 :(得分:3)
您可以使用GNU sed 4.4
代替mainAxisAlignment:MainAxisAlignment.spaceBetween