如何垂直拉伸TableRow

时间:2019-03-16 21:40:09

标签: flutter flutter-layout

如何垂直拉伸TableRow,以便下图中的第二个孩子占据整个高度?

这是到目前为止的代码:

Table(
          border: TableBorder.all(color: Colors.orange),
          defaultVerticalAlignment: TableCellVerticalAlignment.middle,
          children: [
            TableRow(
              children: [
                Text('Product' * 10),
                Table(
                  border: TableBorder(
                      verticalInside: BorderSide(color: Colors.orange),
                      horizontalInside: BorderSide(color: Colors.orange)),
                  children: <TableRow>[
                    TableRow(
                      children: [
                        Text(
                          'Max',
                          textAlign: TextAlign.center,
                        ),
                        Text(
                          'Min',
                          textAlign: TextAlign.center,
                        ),
                      ],
                    ),
                    TableRow(
                      children: [
                        Text(
                          '100',
                          textAlign: TextAlign.center,
                        ),
                        Text(
                          '20',
                          textAlign: TextAlign.center,
                        ),
                      ],
                    )
                  ],
                ),
              ],
            ),
          ],
        ),

enter image description here

0 个答案:

没有答案