dnd_kit_core 0.1.0 copy "dnd_kit_core: ^0.1.0" to clipboard
dnd_kit_core: ^0.1.0 copied to clipboard

discontinuedreplaced by: dnd_kit

Pure Dart core primitives and algorithms for dnd_kit.

Changelog #

0.1.0 #

  • First public release of the pure Dart engine: stable identifiers, geometry, drag state and events, collision detectors, modifiers, sensor and registry contracts, and diagnostics.
  • DndRegistry.registerDraggable/registerDroppable and their unregister counterparts accept an optional owner. Owner-aware registration is last-wins and lets a new owner take over an id without tripping duplicate detection — required so draggables in a lazy ListView.builder survive the list rebuilding a keyed entry (new element mounts before the old is disposed). A departing owner can no longer remove a registration that a newer owner already took over.
  • Owner-aware entries now also keep per-id owner claims and emit a deferred duplicate warning when multiple owners still claim the same id after reconciliation. This restores actionable duplicate diagnostics for owner-registered entries without reintroducing the lazy-list remount crash.
  • Calls without owner keep the strict duplicate-id debug assertion and immediate warning behavior for direct DndRegistry usage.

0.1.0-dev.1 #

  • Added a package-local example/example.md so pub.dev can render a compact illustrative pure Dart example for the package.

0.1.0-dev.0 #

  • Initial development release of the pure Dart dnd_kit_core package.
  • Includes stable ID, geometry, drag state, drag event, collision detector, modifier, sensor, registry, and diagnostics primitives.
  • Keeps Flutter, dart:ui, widget, render object, gesture, overlay, and app state-management dependencies out of the core package.
1
likes
150
points
306
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Pure Dart core primitives and algorithms for dnd_kit.

Topics

#drag-and-drop #dnd #geometry #sortable

License

MIT (license)

Dependencies

collection, meta

More

Packages that depend on dnd_kit_core