Showing
2 changed files
with
7 additions
and
2 deletions
@@ -98,7 +98,9 @@ mixin TableHelper { | @@ -98,7 +98,9 @@ mixin TableHelper { | ||
98 | padding: headerPadding, | 98 | padding: headerPadding, |
99 | decoration: headerCellDecoration, | 99 | decoration: headerCellDecoration, |
100 | constraints: BoxConstraints(minHeight: headerHeight), | 100 | constraints: BoxConstraints(minHeight: headerHeight), |
101 | - child: Text( | 101 | + child: cell is Widget |
102 | + ? cell | ||
103 | + : Text( | ||
102 | headerFormat == null | 104 | headerFormat == null |
103 | ? cell.toString() | 105 | ? cell.toString() |
104 | : headerFormat(tableRow.length, cell), | 106 | : headerFormat(tableRow.length, cell), |
@@ -129,7 +131,9 @@ mixin TableHelper { | @@ -129,7 +131,9 @@ mixin TableHelper { | ||
129 | alignment: align, | 131 | alignment: align, |
130 | padding: headerPadding, | 132 | padding: headerPadding, |
131 | constraints: BoxConstraints(minHeight: headerHeight), | 133 | constraints: BoxConstraints(minHeight: headerHeight), |
132 | - child: Text( | 134 | + child: cell is Widget |
135 | + ? cell | ||
136 | + : Text( | ||
133 | headerFormat == null | 137 | headerFormat == null |
134 | ? cell.toString() | 138 | ? cell.toString() |
135 | : headerFormat(tableRow.length, cell), | 139 | : headerFormat(tableRow.length, cell), |
-
Please register or login to post a comment