Таблица
Код: Выделить всё
Table(
columnWidths: {
0: IntrinsicColumnWidth(),
1: FlexColumnWidth(),
},
border: TableBorder.all(),
children: [
TableRow(
children: [
TableCell(
child: Container(
color: Colors.black.withOpacity(0.2),
padding: EdgeInsets.all(5),
child: Text("Width"),
)),
Container(
height: 100,
color: Colors.red.withOpacity(0.2),
child: Text("Height"),
alignment: Alignment.center,
),
],
),
],
)
Проблема в том, что мне нужен первый контейнер чтобы занять всю доступную высоту в своей ячейке.
Я попробовал обернуть Контейнер с помощью:
- Expanded >
- Гибкая
- IntrinsicHeight
- Столбец
Подробнее здесь: https://stackoverflow.com/questions/791 ... rent-cells
Мобильная версия