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.8k stars 874 forks source link

[BUG] [v3.0.0-alpha.6] Size Constraints error #1186

Closed zs-dima closed 2 years ago

zs-dima commented 2 years ago

flutter_html 2.2.1 working well, but v3.0.0-alpha.6 leads to the Size Constraints error For example when using Html() Widget with IntrinsicHeight it leads to the Intrinsics are not available for PlaceholderAlignment error.

IntrinsicHeight(
    child: Row(
        crossAxisAlignment: CrossAxisAlignment.stretch,
        children: [
            Html(
                data: htmlString,
                shrinkWrap: true,
Sub6Resources commented 2 years ago

Closing as a duplicate. See #1165.

zs-dima commented 2 years ago

@Sub6Resources thanks for looking into. However RenderObject.debugCheckingIntrinsics = true; hiding error, v3.0.0-alpha.6 still break layout, In the same time v3.0.0-alpha.5 and v2.2.1 working well.