Closed Tigran-Kosemyan closed 1 year ago
Html(data: htmlData '', style: { "table": Style( height: Height.auto(), width: Width.auto(), border: const Border( left: BorderSide(color: Colors.black, width: 0.5), bottom: BorderSide(color: Colors.black, width: 0.5)), ), "tr": Style( height: Height.auto(), border: const Border( top: BorderSide(color: Colors.black, width: 0.5), right: BorderSide(color: Colors.black, width: 0.5), ), ), "th": Style(padding: HtmlPaddings.all(6), height: Height.auto()), "td": Style(padding: HtmlPaddings.all(6), height: Height.auto()), "col": Style(height: Height.auto(), width: Width.auto()), }, customRenders: { tableMatcher(): CustomRender.widget(widget: (context, child) { return SingleChildScrollView( scrollDirection: Axis.horizontal, // this calls the table CustomRender to render a table as normal (it uses a widget so we know widget is not null) child: tableRender.call().widget!.call(context, child), ); }), }),
Duplicate of #1326 1326
Html(data: htmlData '', style: { "table": Style( height: Height.auto(), width: Width.auto(), border: const Border( left: BorderSide(color: Colors.black, width: 0.5), bottom: BorderSide(color: Colors.black, width: 0.5)), ), "tr": Style( height: Height.auto(), border: const Border( top: BorderSide(color: Colors.black, width: 0.5), right: BorderSide(color: Colors.black, width: 0.5), ), ), "th": Style(padding: HtmlPaddings.all(6), height: Height.auto()), "td": Style(padding: HtmlPaddings.all(6), height: Height.auto()), "col": Style(height: Height.auto(), width: Width.auto()), }, customRenders: { tableMatcher(): CustomRender.widget(widget: (context, child) { return SingleChildScrollView( scrollDirection: Axis.horizontal, // this calls the table CustomRender to render a table as normal (it uses a widget so we know widget is not null) child: tableRender.call().widget!.call(context, child), ); }), }),