File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -61,13 +61,17 @@ const htmlData = r"""
61
61
<p>
62
62
<q>Famous quote...</q>
63
63
</p>
64
- <table style="height: 400">
64
+ <table>
65
+ <colgroup>
66
+ <col width="50%" />
67
+ <col span="2" width="25%" />
68
+ </colgroup>
65
69
<thead>
66
70
<tr><th>One</th><th>Two</th><th>Three</th></tr>
67
71
</thead>
68
72
<tbody>
69
73
<tr>
70
- <td rowspan='2'>Rowspan</td><td>Data</td><td>Data</td>
74
+ <td rowspan='2'>Rowspan\nRowspan\nRowspan\nRowspan\nRowspan\nRowspan\nRowspan\nRowspan\nRowspan\nRowspan </td><td>Data</td><td>Data</td>
71
75
</tr>
72
76
<tr>
73
77
<td colspan="2"><img alt='Google' src='https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_92x30dp.png' /></td>
@@ -264,13 +268,13 @@ class _MyHomePageState extends State<MyHomePage> {
264
268
'h5' : Style (maxLines: 2 , textOverflow: TextOverflow .ellipsis),
265
269
},
266
270
customRender: {
267
- // "table": (context, child) {
268
- // return SingleChildScrollView(
269
- // scrollDirection: Axis.horizontal,
270
- // child:
271
- // (context.tree as TableLayoutElement).toWidget(context),
272
- // );
273
- // },
271
+ "table" : (context, child) {
272
+ return SingleChildScrollView (
273
+ scrollDirection: Axis .horizontal,
274
+ child:
275
+ (context.tree as TableLayoutElement ).toWidget (context),
276
+ );
277
+ },
274
278
"bird" : (RenderContext context, Widget child) {
275
279
return TextSpan (text: "🐦" );
276
280
},
You can’t perform that action at this time.
0 commit comments