popper 1.2.0
popper: ^1.2.0 copied to clipboard
Floating UI and Popper-style positioning for Dart web apps, with middleware, auto update, portals, and anchored overlays.
1.2.0 #
- Fixed
PopperPortal.dispose()andPopperController.dispose()leaving behind the inline styles anddata-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 withrestoreOnDispose: 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 adata-popper-placementthe consumer had set before attaching survive the attach/dispose cycle untouched.
1.1.0 #
- Added
arrowWriteModewithfull,crossAxisOnly, andnoneto control how arrow inline styles are written. - Added
PopperController.applyPopperLayout(...)to separate layout computation from DOM application. - Added
anchorRectBuilderto stabilize or override reference measurement. - Added
layoutWriterandarrowLayoutWriterso consumers can replace the default layout writing policy. - Added
PopperOptions.copyWith(...)for easier option composition.
1.0.0 #
- Initial version.