Committed by
David PHAM-VAN
Add headerCellDecoration to Table.fromTextArray factory method
FIX https://github.com/DavBfr/dart_pdf/issues/1032
Showing
1 changed file
with
2 additions
and
0 deletions
@@ -277,6 +277,7 @@ class Table extends Widget with SpanningWidget { | @@ -277,6 +277,7 @@ class Table extends Widget with SpanningWidget { | ||
277 | TableColumnWidth defaultColumnWidth = const IntrinsicColumnWidth(), | 277 | TableColumnWidth defaultColumnWidth = const IntrinsicColumnWidth(), |
278 | TableWidth tableWidth = TableWidth.max, | 278 | TableWidth tableWidth = TableWidth.max, |
279 | BoxDecoration? headerDecoration, | 279 | BoxDecoration? headerDecoration, |
280 | + BoxDecoration? headerCellDecoration, | ||
280 | BoxDecoration? rowDecoration, | 281 | BoxDecoration? rowDecoration, |
281 | BoxDecoration? oddRowDecoration, | 282 | BoxDecoration? oddRowDecoration, |
282 | }) { | 283 | }) { |
@@ -306,6 +307,7 @@ class Table extends Widget with SpanningWidget { | @@ -306,6 +307,7 @@ class Table extends Widget with SpanningWidget { | ||
306 | Container( | 307 | Container( |
307 | alignment: headerAlignments[tableRow.length] ?? headerAlignment, | 308 | alignment: headerAlignments[tableRow.length] ?? headerAlignment, |
308 | padding: headerPadding, | 309 | padding: headerPadding, |
310 | + decoration: headerCellDecoration, | ||
309 | constraints: BoxConstraints(minHeight: headerHeight), | 311 | constraints: BoxConstraints(minHeight: headerHeight), |
310 | child: Text( | 312 | child: Text( |
311 | headerFormat == null | 313 | headerFormat == null |
-
Please register or login to post a comment