@@ -30,6 +30,7 @@ class MarkdownStyleSheet {
3030 this .tableBody,
3131 this .tableHeadAlign,
3232 this .tableBorder,
33+ this .tableColumnWidth,
3334 this .tableCellsPadding,
3435 this .tableCellsDecoration,
3536 this .blockquotePadding,
@@ -93,6 +94,7 @@ class MarkdownStyleSheet {
9394 tableBody: theme.textTheme.body1,
9495 tableHeadAlign: TextAlign .center,
9596 tableBorder: TableBorder .all (color: Colors .grey.shade300, width: 0 ),
97+ tableColumnWidth: const FlexColumnWidth (),
9698 tableCellsPadding: const EdgeInsets .fromLTRB (16 , 8 , 16 , 8 ),
9799 tableCellsDecoration: BoxDecoration (color: Colors .grey.shade50),
98100 blockquotePadding: const EdgeInsets .all (8.0 ),
@@ -147,6 +149,7 @@ class MarkdownStyleSheet {
147149 tableBody: theme.textTheme.body1,
148150 tableHeadAlign: TextAlign .center,
149151 tableBorder: TableBorder .all (color: Colors .grey.shade300),
152+ tableColumnWidth: const FlexColumnWidth (),
150153 tableCellsPadding: const EdgeInsets .fromLTRB (16 , 8 , 16 , 8 ),
151154 tableCellsDecoration: BoxDecoration (color: Colors .grey.shade50),
152155 blockquotePadding: const EdgeInsets .all (8.0 ),
@@ -192,6 +195,7 @@ class MarkdownStyleSheet {
192195 TextStyle tableBody,
193196 TextAlign tableHeadAlign,
194197 TableBorder tableBorder,
198+ TableColumnWidth tableColumnWidth,
195199 EdgeInsets tableCellsPadding,
196200 Decoration tableCellsDecoration,
197201 EdgeInsets blockquotePadding,
@@ -224,6 +228,7 @@ class MarkdownStyleSheet {
224228 tableBody: tableBody ?? this .tableBody,
225229 tableHeadAlign: tableHeadAlign ?? this .tableHeadAlign,
226230 tableBorder: tableBorder ?? this .tableBorder,
231+ tableColumnWidth: tableColumnWidth ?? this .tableColumnWidth,
227232 tableCellsPadding: tableCellsPadding ?? this .tableCellsPadding,
228233 tableCellsDecoration: tableCellsDecoration ?? this .tableCellsDecoration,
229234 blockquotePadding: blockquotePadding ?? this .blockquotePadding,
@@ -302,6 +307,9 @@ class MarkdownStyleSheet {
302307 /// The [TableBorder] to use for `table` elements.
303308 final TableBorder tableBorder;
304309
310+ /// The [TableColumnWidth] to use for `th` and `td` elements.
311+ final TableColumnWidth tableColumnWidth;
312+
305313 /// The padding to use for `th` and `td` elements.
306314 final EdgeInsets tableCellsPadding;
307315
@@ -357,6 +365,7 @@ class MarkdownStyleSheet {
357365 typedOther.tableBody == tableBody &&
358366 typedOther.tableHeadAlign == tableHeadAlign &&
359367 typedOther.tableBorder == tableBorder &&
368+ typedOther.tableColumnWidth == tableColumnWidth &&
360369 typedOther.tableCellsPadding == tableCellsPadding &&
361370 typedOther.tableCellsDecoration == tableCellsDecoration &&
362371 typedOther.blockquotePadding == blockquotePadding &&
@@ -392,6 +401,7 @@ class MarkdownStyleSheet {
392401 tableBody,
393402 tableHeadAlign,
394403 tableBorder,
404+ tableColumnWidth,
395405 tableCellsPadding,
396406 tableCellsDecoration,
397407 blockquotePadding,
0 commit comments