flutter_html_css_size_constraints 0.2.0 copy "flutter_html_css_size_constraints: ^0.2.0" to clipboard
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_extension on 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 #

  • kFlutterHtmlDefaultFontSize is 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. Use kFlutterHtmlRootFontSize from flutter_html_css_font_size, or FontSize.medium.value from flutter_html itself. Nothing about the rem fallback changes: rootFontSize still defaults to 14, and this package now reads that from a private constant of its own.
  • Fixed a StackOverflowError when this extension and another extension that wraps at the building step both render the same element, e.g. <div style="max-width: 100px; cursor: pointer;">. Both delegate the element back into the pipeline, and flutter_html 3.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 while flutter_html_css_interaction 0.1.1 and flutter_html_css_percent_size were 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_interaction 0.1.1 now builds one ConstrainedBox and one MouseRegion in either registration order, where the order that listed this extension first used to build the ConstrainedBox twice. 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_html extension that applies max-width, min-width, max-height and min-height from an element's inline style as a ConstrainedBox, resolving px, the other absolute lengths, %, vw/vh/ vmin/vmax, em and rem.
0
likes
160
points
45
downloads

Documentation

API reference

Publisher

verified publisherchaosworld.cc

Weekly Downloads

A flutter_html extension that renders the CSS max-width, min-width, max-height and min-height properties.

Repository (GitLab)
View/report issues
Contributing

Topics

#flutter-html #css #html #extension #size-constraints

License

MPL-2.0 (license)

Dependencies

flutter, flutter_html, html

More

Packages that depend on flutter_html_css_size_constraints