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

A flutter_html extension that renders the CSS transform and transform-origin properties, percentages included.

0.2.0 #

  • Renamed from flutter_html_css_transform_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.0 #

  • Initial release. Adds a flutter_html extension that applies transform and transform-origin from an element's inline style. Handles translate, translateX, translateY, scale, scaleX, scaleY, rotate, skew, skewX, skewY, matrix and none. The functions compose left to right, and an angle takes deg, grad, rad or turn. Percentages resolve against the element's own box during paint, so translate(-50%, -50%) works next to a rotation. 3D functions are rejected, because the CSS around them has no equivalent here.
  • em resolves against the element's own computed font size, and rem against the rootFontSize argument, which defaults to flutter_html's root font size of 14. Both used to multiply by a hard-coded 16, so translate(0.5rem, 0) moved 8 px and now moves 7 px, and 2em on an element rendering at 20 px moved 32 px and now moves 40 px. No release shipped the old numbers.
  • kFlutterHtmlDefaultFontSize is not exported. 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 a library-private constant here. 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.
0
likes
160
points
48
downloads

Documentation

API reference

Publisher

verified publisherchaosworld.cc

Weekly Downloads

A flutter_html extension that renders the CSS transform and transform-origin properties, percentages included.

Repository (GitLab)
View/report issues
Contributing

Topics

#flutter-html #css #html #extension #transform

License

MPL-2.0 (license)

Dependencies

flutter, flutter_html, html

More

Packages that depend on flutter_html_css_transform