dnd_kit 0.3.2
dnd_kit: ^0.3.2 copied to clipboard
Pure Dart core engine for the dnd_kit drag-and-drop family. Flutter apps use dnd_kit_flutter; Jaspr apps use dnd_kit_jaspr.
Changelog #
0.3.2 #
- Updates the pub.dev homepage metadata to the hosted project website while keeping repository and issue tracker links on GitHub.
- Refreshes the package links for the repository transfer to
iamv4g/dnd_kit.
0.3.1 #
- Adds
DndAnnouncementsto the shared engine as a framework-neutral accessibility contract for drag start/over/end/cancel announcements. - Flutter and Jaspr adapters now reuse the shared contract from
dnd_kitinstead of maintaining duplicate pure-Dart announcement builders.
0.3.0 #
- Package identity change.
dnd_kitis now the pure Dart core engine of the toolkit — the package formerly published asdnd_kit_core. The API surface is unchanged fromdnd_kit_core 0.2.0-dev.0; only the package name and import path changed (package:dnd_kit_core/dnd_kit_core.dart→package:dnd_kit/dnd_kit.dart). - The earlier
dnd_kit0.1.xreleases were the Flutter umbrella that re-exporteddnd_kit_flutter. That umbrella role is discontinued: Flutter apps now depend ondnd_kit_flutterand importpackage:dnd_kit_flutter/dnd_kit_flutter.dart; Jaspr apps depend ondnd_kit_jaspr. Both adapters build on this engine. dnd_kit_coreis discontinued and superseded by this package. See ADR 0017 for the rationale and the brand-as-core decision that supersedes ADR 0014.- Adds additive axis-aware shared auto-scroll math via
DndScrollAxisand anaxisparameter ondndAutoScrollVelocity(...). Vertical behavior remains the default; both the Flutter and Jaspr adapters now execute against this contract.
0.2.0-dev.0 #
- Starts the shared-runtime development line for
dnd_kit_core. - Adds
DndRuntimeas the framework-neutral drag engine shared by the Flutter and Jaspr adapters. - Moves
DndMeasuringRegistryand its measurement-status contract into core so adapters can share the same measuring cache model. - Moves
DndPointerSensorto core on top ofDndRuntime, preserving the pointer-activation state machine across adapters. - Brings the shared sortable move/strategy math and auto-scroll edge/velocity math into core for reuse outside Flutter.
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.