flutter_html_css_interaction 0.2.0 copy "flutter_html_css_interaction: ^0.2.0" to clipboard
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_extension on 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 StackOverflowError when this extension and flutter_html_css_size_constraints 0.1.0 both render the same element, e.g. <div style="max-width: 100px; cursor: pointer;">. Both wrap at the building step and both hand the element back to the pipeline, and flutter_html 3.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_constraints 0.1.1, which added a guard of its own, neither extension runs twice any more: either registration order builds one ConstrainedBox and one MouseRegion, 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_html extension that reads pointer-events, user-select and cursor from an element's inline style and renders them as IgnorePointer, SelectionContainer.disabled and MouseRegion respectively.
0
likes
160
points
38
downloads

Documentation

API reference

Publisher

verified publisherchaosworld.cc

Weekly Downloads

A flutter_html extension that renders the CSS pointer-events, user-select and cursor properties.

Repository (GitLab)
View/report issues
Contributing

Topics

#flutter-html #css #html #extension #cursor

License

MPL-2.0 (license)

Dependencies

flutter, flutter_html, html

More

Packages that depend on flutter_html_css_interaction