flutter_html_css_size_constraints 0.2.0
flutter_html_css_size_constraints: ^0.2.0 copied to clipboard
A flutter_html extension that renders the CSS max-width, min-width, max-height and min-height properties.
0.2.0 #
- Renamed from
flutter_html_css_size_constraints_extensionon pub.flutter-io.cn. The old package stays published and is marked discontinued with this one as its replacement. Class names are unchanged.
0.1.1 #
kFlutterHtmlDefaultFontSizeis deprecated and goes away in 0.2.0. Four packages in this family exported the same value under that name, so importing any two of them was an ambiguous import. The other three have dropped it; this one shipped it in 0.1.0, so it stays here for one more minor version. UsekFlutterHtmlRootFontSizefromflutter_html_css_font_size, orFontSize.medium.valuefromflutter_htmlitself. Nothing about theremfallback changes:rootFontSizestill defaults to 14, and this package now reads that from a private constant of its own.- Fixed a
StackOverflowErrorwhen this extension and another extension that wraps at thebuildingstep both render the same element, e.g.<div style="max-width: 100px; cursor: pointer;">. Both delegate the element back into the pipeline, andflutter_html3.0.0 does not carry the "ignore me" set into the nested call, so the two handed the element to each other until the stack ran out. This extension now refuses to match a node it is already building. It was found whileflutter_html_css_interaction0.1.1 andflutter_html_css_percent_sizewere built: both guard on their own side, and this was the last delegating extension in the family without a guard. - With the guard on both sides, neither extension runs twice any more. The pair
with
flutter_html_css_interaction0.1.1 now builds oneConstrainedBoxand oneMouseRegionin either registration order, where the order that listed this extension first used to build theConstrainedBoxtwice. Whichever extension is listed first is the outer wrapper. See "Before you register it" in the README.
0.1.0 #
- Initial release: adds a
flutter_htmlextension that appliesmax-width,min-width,max-heightandmin-heightfrom an element's inline style as aConstrainedBox, resolvingpx, the other absolute lengths,%,vw/vh/vmin/vmax,emandrem.