flutter_html_css_core 0.1.0 copy "flutter_html_css_core: ^0.1.0" to clipboard
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, splitTopLevel and rewriteDeclarations for reading and rewriting an inline style="" attribute. Eleven packages had a splitter, four of them private, and only two of them kept a ; inside url("a;b") where it was.
  • stripImportant and normalizeKeyword. Three grammars were in use; the regex one wins, because the endsWith('!important') form misses ! important and misses a trailing space.
  • CssLength with parse and resolve. Nine packages resolved a length, and they disagreed on a bare number, on pt and on what to do without an anchor.
  • kFlutterHtmlRootFontSize, which is 14. It lived in flutter_html_css_font_size and now lives here.
  • The support model: kFlutterHtmlSupportedProperties, kFlutterHtmlSupportedDisplayValues, kFlutterHtmlUnrenderableFontSizeUnits, isRenderableDeclaration, CssCompanionExtension and kKnownCssCompanions. 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.
0
likes
160
points
75
downloads

Documentation

API reference

Publisher

verified publisherchaosworld.cc

Weekly Downloads

Shared CSS parsing helpers for the flutter_html extension family.

Repository (GitLab)
View/report issues
Contributing

Topics

#flutter-html #css #html #extension #parsing

License

MPL-2.0 (license)

Dependencies

flutter

More

Packages that depend on flutter_html_css_core