flutter_html_css_stylesheet library
Classes
- CssSpecificity
- The specificity of one selector, as the three counts CSS defines.
- CssStyleRule
- One style rule out of a stylesheet, for one selector.
- CssStylesheetHtmlExtension
-
Makes the declarations in a
<style>block reachflutter_htmland its extension family. - StylesheetDeclaration
-
One
property: valuepair out of a stylesheet or an inline style. - UnsupportedCssRule
-
One rule that renders nothing, handed to
onUnsupportedRule.
Enums
- UnsupportedCssReason
- Why a rule in a stylesheet renders nothing.
Constants
-
kNeverMatchingPseudoClasses
→ const Set<
String> -
The pseudo-classes the selector matcher evaluates to
falsefor every element. -
kSupportedPseudoClasses
→ const Set<
String> -
The pseudo-classes the selector matcher in
package:htmlevaluates. -
kSupportedPseudoClassFunctions
→ const Set<
String> - The functional pseudo-classes the selector matcher evaluates.
Functions
-
applyRulesToInlineStyle(
String? inlineStyle, Iterable< CssStyleRule> rules) → String -
Merges the winning declarations of
rulesintoinlineStyle. -
joinDeclarationList(
Iterable< StylesheetDeclaration> declarations) → String -
Joins declarations back into an inline
style=""value. -
matchingRules(
Iterable< CssStyleRule> rules, StyledElement element) → List<CssStyleRule> -
The rules of
rulesthatelementmatches, in source order. -
parseCssRules(
String source, {int firstOrder = 0, OnUnsupportedCssRule? onUnsupportedRule}) → List< CssStyleRule> - Reads a stylesheet and returns one CssStyleRule per selector.
-
parseDeclarationList(
String style) → List< StylesheetDeclaration> -
Splits an inline
style=""value into declarations. -
ruleMatchesElement(
CssStyleRule rule, StyledElement element) → bool -
Whether
elementmatchesrule's selector. -
specificityOfSelector(
String selector) → CssSpecificity - The specificity of one selector, given as source text.
Typedefs
- OnUnsupportedCssRule = void Function(UnsupportedCssRule rule)
- Called once per rule that renders nothing. See UnsupportedCssRule.