flutter_widget_from_html icon indicating copy to clipboard operation
flutter_widget_from_html copied to clipboard

type 'Null' is not a subtype of type 'LiteralTerm' in type cast

Open javier-gantri opened this issue 7 months ago • 1 comments

Steps to Reproduce

HTML

Some invalid CSS like <div  style="background: red; #;">, for context, I'm trying to parse some emails sent using external tools that sometimes generate some invalid CSS selector.

`HtmlWidget` configuration
HtmlWidget(
        content,
        buildAsync: true,
        onErrorBuilder: (context, element, error) {
          return const Text('Error parsing the message!');
        },
      ),
Tesing environment

Expected results

don't show the red x icon, and discard invalid HTML and CSS.

Actual results

show a red x icon

javier-gantri avatar Jul 01 '24 20:07 javier-gantri