popper 1.2.0 copy "popper: ^1.2.0" to clipboard
popper: ^1.2.0 copied to clipboard

Platformweb

Floating UI and Popper-style positioning for Dart web apps, with middleware, auto update, portals, and anchored overlays.

1.2.0 #

  • Fixed PopperPortal.dispose() and PopperController.dispose() leaving behind the inline styles and data-popper-* attributes they had written on the floating element. Popper positions by writing inline styles (position: fixed, transform: translate(...), left/top/margin, z-index, ...), which outrank any stylesheet, so an element handed back still carrying them kept rendering at the last computed viewport coordinates instead of falling back to its own CSS. This was most visible with restoreOnDispose: true, where the element is reused after the portal is torn down: a menu restored to its inline parent stayed frozen at the position computed before teardown.
  • Changed both dispose() methods to hand the floating element back in its pre-attach state. The state Popper takes ownership of is captured on attach and restored on dispose, rather than blanket-cleared, so inline styles and a data-popper-placement the consumer had set before attaching survive the attach/dispose cycle untouched.

1.1.0 #

  • Added arrowWriteMode with full, crossAxisOnly, and none to control how arrow inline styles are written.
  • Added PopperController.applyPopperLayout(...) to separate layout computation from DOM application.
  • Added anchorRectBuilder to stabilize or override reference measurement.
  • Added layoutWriter and arrowLayoutWriter so consumers can replace the default layout writing policy.
  • Added PopperOptions.copyWith(...) for easier option composition.

1.0.0 #

  • Initial version.
0
likes
130
points
116
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Floating UI and Popper-style positioning for Dart web apps, with middleware, auto update, portals, and anchored overlays.

Repository (GitHub)
View/report issues

Topics

#popover #tooltip #overlay #position #web

License

MIT (license)

More

Packages that depend on popper