flutter_html_css_object_fit 0.2.1
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_core0.1.0. The package's own copies of the declaration split and the keyword normalizer are gone;CssObjectFit.parse,parseCssObjectPositionandCssObjectFitDeclarations.fromInlineStylenow go throughsplitDeclarations,splitTopLevelandnormalizeKeywordfrom the shared package. No class is renamed and no public signature changes. - Widens
!importanthandling. A style likeobject-fit: cover !importantused to be dropped outright, because neither parser stripped the flag before matching. It now reads the same asobject-fit: cover, because the core's declaration split removes!importantbefore the value reaches this package's parsers.object-positionpicks up the same widening. - Percentage parsing in
object-positionis 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_extensionon 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_htmlextension that readsobject-fitandobject-positionfrom an<img>element's inline style, and renders the image with the matchingBoxFitandAlignment.flutter_html3.0.0 hardcodesBoxFit.fillin all three of its image renderers.object-positionaccepts keywords and percentages. A length is dropped, because Flutter'sAlignmentcannot express one.