flutter_html_css_interaction 0.2.1
flutter_html_css_interaction: ^0.2.1 copied to clipboard
A flutter_html extension that renders the CSS pointer-events, user-select and cursor properties.
0.2.1 #
- Switched the inline-style parser to
flutter_html_css_core'ssplitDeclarationsinstead of this package's own hand-rolled splitter. Behaviour is the same except that!importantis now stripped properly before apointer-eventsoruser-selectvalue is compared againstnone. The old splitter kept the flag as part of the value, sopointer-events: none !importantanduser-select: none !importantwere silently ignored; both now behave the same as the un-flagged form, and the! importantspelling (with a space) is recognised too.cursoralready worked around this because it only ever looks at the first whitespace token, so cursor behaviour is unchanged. The declaration splitter is also now top-level aware, so a;insideurl(...)or a quoted string no longer cuts a declaration in two (untested before, since no fixture exercised it).
0.2.0 #
- Renamed from
flutter_html_css_interaction_extensionon pub.dev. The old package stays published and is marked discontinued with this one as its replacement. Class names are unchanged.
0.1.1 #
- Fixed a
StackOverflowErrorwhen this extension andflutter_html_css_size_constraints0.1.0 both render the same element, e.g.<div style="max-width: 100px; cursor: pointer;">. Both wrap at thebuildingstep and both hand the element back to the pipeline, andflutter_html3.0.0 does not carry the "ignore me" set into the nested call, so the two delegated to each other until the stack ran out. It happened in both registration orders. This extension now refuses to match a node it is already building, which breaks the loop from its side. - With
flutter_html_css_size_constraints0.1.1, which added a guard of its own, neither extension runs twice any more: either registration order builds oneConstrainedBoxand oneMouseRegion, and whichever extension is listed first is the outer wrapper. Against the released 0.1.0 of that package the old advice still holds -- list this extension first, or the companion wraps twice.
0.1.0 #
- Initial release. Adds a
flutter_htmlextension that readspointer-events,user-selectandcursorfrom an element's inline style and renders them asIgnorePointer,SelectionContainer.disabledandMouseRegionrespectively.