David PHAM-VAN

TableHelper data accepts Widgets as child

... ... @@ -3,6 +3,7 @@
## 3.10.4
- Fix Deprecation warning message
- TableHelper data accepts Widgets as child
## 3.10.3
... ...
... ... @@ -98,7 +98,9 @@ mixin TableHelper {
padding: headerPadding,
decoration: headerCellDecoration,
constraints: BoxConstraints(minHeight: headerHeight),
child: Text(
child: cell is Widget
? cell
: Text(
headerFormat == null
? cell.toString()
: headerFormat(tableRow.length, cell),
... ... @@ -129,7 +131,9 @@ mixin TableHelper {
alignment: align,
padding: headerPadding,
constraints: BoxConstraints(minHeight: headerHeight),
child: Text(
child: cell is Widget
? cell
: Text(
headerFormat == null
? cell.toString()
: headerFormat(tableRow.length, cell),
... ...