flutter_html_css_core 0.1.0
flutter_html_css_core: ^0.1.0 copied to clipboard
Shared CSS parsing helpers for the flutter_html extension family.
0.1.0 #
First release. It carries the code the flutter_html_css_* extensions had all
grown their own copy of, so there is one version of each from here on.
splitDeclarations,splitTopLevelandrewriteDeclarationsfor reading and rewriting an inlinestyle=""attribute. Eleven packages had a splitter, four of them private, and only two of them kept a;insideurl("a;b")where it was.stripImportantandnormalizeKeyword. Three grammars were in use; the regex one wins, because theendsWith('!important')form misses! importantand misses a trailing space.CssLengthwithparseandresolve. Nine packages resolved a length, and they disagreed on a bare number, onptand on what to do without an anchor.kFlutterHtmlRootFontSize, which is 14. It lived influtter_html_css_font_sizeand now lives here.- The support model:
kFlutterHtmlSupportedProperties,kFlutterHtmlSupportedDisplayValues,kFlutterHtmlUnrenderableFontSizeUnits,isRenderableDeclaration,CssCompanionExtensionandkKnownCssCompanions. The bootstrap and vuetify packages held one copy each, with identical 51-property sets and different registries; the registry here is the union of the two.