dnd_kit_core 0.1.0
dnd_kit_core: ^0.1.0 copied to clipboard
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/registerDroppableand their unregister counterparts accept an optionalowner. Owner-aware registration is last-wins and lets a new owner take over an id without tripping duplicate detection — required so draggables in a lazyListView.buildersurvive 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
ownerkeep the strict duplicate-id debug assertion and immediate warning behavior for directDndRegistryusage.
0.1.0-dev.1 #
- Added a package-local
example/example.mdso 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_corepackage. - 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.