flutter_html_css_effects 0.2.0
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_extensionon 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: collapsenow 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; seeCssEffectsHtmlExtension.tableTrackElements.emandremin abox-shadowlength no longer multiply by a hard-coded 16.emnow uses the element's own computed font size, andremuses the newrootFontSizeargument, which defaults toflutter_html's root font size of 14. Sizes change for anyone who already ships these units:0 0.5rem 0was an 8 px offset and is now 7 px, and2emon an element rendering at 20 px was 32 px and is now 40 px.kFlutterHtmlDefaultFontSizeis 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, usekFlutterHtmlRootFontSizefromflutter_html_css_font_size, orFontSize.medium.valuefromflutter_htmlitself.- Trimmed the README and moved the per-symbol detail into the API docs.
0.1.0 #
- Initial release. Adds a
flutter_htmlextension that appliesopacity,box-shadowandvisibilityfrom an element's inline style, and shapes the shadow to aborder-radiuson the same element. Inset shadow layers are skipped, because Flutter cannot render them.