flutter_html_css_effects 0.2.0 copy "flutter_html_css_effects: ^0.2.0" to clipboard
flutter_html_css_effects: ^0.2.0 copied to clipboard

A flutter_html extension that renders the CSS opacity, box-shadow and visibility properties.

0.2.0 #

  • Renamed from flutter_html_css_effects_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 #

  • visibility: collapse now keeps the element's layout space, which is what CSS does on anything that is not a table row or column. It used to remove the space on every element. A table track still collapses; see CssEffectsHtmlExtension.tableTrackElements.
  • em and rem in a box-shadow length no longer multiply by a hard-coded 16. em now uses the element's own computed font size, and rem uses the new rootFontSize argument, which defaults to flutter_html's root font size of 14. Sizes change for anyone who already ships these units: 0 0.5rem 0 was an 8 px offset and is now 7 px, and 2em on an element rendering at 20 px was 32 px and is now 40 px.
  • kFlutterHtmlDefaultFontSize is not exported. It was only ever in the working tree, so nothing shipped with it and there is nothing to deprecate. Four packages in the family declared the same value under that name, which made importing any two of them an ambiguous import. The fallback basis is now a library-private constant. If you want the root font size as a symbol, use kFlutterHtmlRootFontSize from flutter_html_css_font_size, or FontSize.medium.value from flutter_html itself.
  • Trimmed the README and moved the per-symbol detail into the API docs.

0.1.0 #

  • Initial release. Adds a flutter_html extension that applies opacity, box-shadow and visibility from an element's inline style, and shapes the shadow to a border-radius on the same element. Inset shadow layers are skipped, because Flutter cannot render them.
0
likes
160
points
41
downloads

Documentation

API reference

Publisher

verified publisherchaosworld.cc

Weekly Downloads

A flutter_html extension that renders the CSS opacity, box-shadow and visibility properties.

Repository (GitLab)
View/report issues
Contributing

Topics

#flutter-html #css #html #extension #box-shadow

License

MPL-2.0 (license)

Dependencies

flutter, flutter_html, html

More

Packages that depend on flutter_html_css_effects