flutter_html_css_interaction 0.2.0
flutter_html_css_interaction: ^0.2.0 copied to clipboard
A flutter_html extension that renders the CSS pointer-events, user-select and cursor properties.
0.2.0 #
- Renamed from
flutter_html_css_interaction_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 #
- 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.