Sub6Resources / flutter_html

A Flutter widget for rendering static html as Flutter widgets (Will render over 80 different html tags!)
https://pub.dev/packages/flutter_html
MIT License
1.79k stars 860 forks source link

[BUG] <li> are rendered in the same line when shrinkWrap is true #1280

Closed krille-chan closed 1 year ago

krille-chan commented 1 year ago

Describe the bug:

If you set shrinkWrap to true it breaks

  • list items.

    HTML to reproduce the issue:

    <ul>
      <li>First line</li>
      <li>Second line</li>
    </ul>

    Html widget configuration:

    Html(
    //...
      shrinkWrap: true,
    );

    Expected behavior:

    It works fine when shrinkWrap is false.

    Screenshots:

    Bildschirmfoto 2023-05-22 um 08 30 48

    Device details and Flutter/Dart/flutter_html versions:

    flutter_html: ^3.0.0-beta.1

    A picture of a cute animal (not mandatory but encouraged)

    🐰