Flutter-对齐表格中的文字

时间:2019-03-27 09:24:40

标签: dart flutter

如何在Table中对齐文本?

从左起第一列(ID),从右起第二列(Value)。

    child: Table(                    
                        children: [
                          TableRow(children: [
                            TableCell(
                              child: Row(
                                mainAxisAlignment:
                                MainAxisAlignment.spaceAround,
                                children: <Widget>[
                                  new Text('ID'),
                                  new Text('Value'),
                                ],
                              ),
                            )
                          ]),

1 个答案:

答案 0 :(得分:3)

您可以使用GNU sed 4.4代替mainAxisAlignment:MainAxisAlignment.spaceBetween

相关问题