daohoangson / flutter_widget_from_html

Flutter package to render html as widgets that supports hyperlink, image, audio, video, iframe and many other tags.
https://pub.dev/packages/flutter_widget_from_html
MIT License
626 stars 230 forks source link

RenderSliver mode error when `html` input is empty #1320

Closed vanvixi closed 4 weeks ago

vanvixi commented 1 month ago

Steps to Reproduce

HTML ```html ```
`HtmlWidget` configuration ``` HtmlWidget( '', renderMode: RenderMode.sliverList, ) ```
Tesing environment ``` Flutter 3.22.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision b0850beeb2 (5 weeks ago) • 2024-07-16 21:43:41 -0700 Engine • revision 235db911ba Tools • Dart 3.4.4 • DevTools 2.34.3 ```

Expected results

Actual results

A RenderSliverPadding expected a child of type RenderSliver but received a child of type RenderErrorBox.

daohoangson commented 4 weeks ago

Thank you for the bug report & also for the PR. v0.15.2 has been released with the fix.

vanvixi commented 4 weeks ago

@daohoangson Good job. Thank you for created this wonderful lib 🚀🚀🚀