Flutter package to render html as widgets that supports hyperlink, image, audio, video, iframe and many other tags.
644
stars
242
forks
source link
type 'Null' is not a subtype of type 'LiteralTerm' in type cast #1287
Open
javier-gantri opened 4 months ago
Steps to Reproduce
HTML
```html Some invalid CSS like`HtmlWidget` configuration
```dart 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
I can't reproduce this bug with the provided HTML. Can you provide the full HTML that is triggering this bug? Also, an error stack would be useful.