flutter_html_css_object_fit 0.2.1 copy "flutter_html_css_object_fit: ^0.2.1" to clipboard
flutter_html_css_object_fit: ^0.2.1 copied to clipboard

A flutter_html extension that renders the CSS object-fit and object-position properties on images.

0.2.1 #

  • Switches the inline style reader to flutter_html_css_core 0.1.0. The package's own copies of the declaration split and the keyword normalizer are gone; CssObjectFit.parse, parseCssObjectPosition and CssObjectFitDeclarations.fromInlineStyle now go through splitDeclarations, splitTopLevel and normalizeKeyword from the shared package. No class is renamed and no public signature changes.
  • Widens !important handling. A style like object-fit: cover !important used to be dropped outright, because neither parser stripped the flag before matching. It now reads the same as object-fit: cover, because the core's declaration split removes !important before the value reaches this package's parsers. object-position picks up the same widening.
  • Percentage parsing in object-position is untouched by the move. The core's length parser accepts CSS exponent notation (1e2%); this package's own percentage grammar still rejects it, on purpose, so a length position keeps being dropped exactly as it did before.

0.2.0 #

  • Renamed from flutter_html_css_object_fit_extension on pub.dev. 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 reads object-fit and object-position from an <img> element's inline style, and renders the image with the matching BoxFit and Alignment. flutter_html 3.0.0 hardcodes BoxFit.fill in all three of its image renderers. object-position accepts keywords and percentages. A length is dropped, because Flutter's Alignment cannot express one.
0
likes
160
points
39
downloads

Documentation

API reference

Publisher

verified publisherchaosworld.cc

Weekly Downloads

A flutter_html extension that renders the CSS object-fit and object-position properties on images.

Repository (GitLab)
View/report issues
Contributing

Topics

#flutter-html #css #html #extension #object-fit

License

MPL-2.0 (license)

Dependencies

flutter, flutter_html, flutter_html_css_core, html

More

Packages that depend on flutter_html_css_object_fit