Documentation menu
Get started

Installation

Add one package for your platform. Each adapter depends on the shared engine for you — you only depend on dnd_kit directly when building a custom adapter or testing the drag math.

You'll learn
  • Which package to add for Flutter, Jaspr, or a custom adapter.
  • The current stable version line of the family.

Flutter

Add dnd_kit_flutter to a Flutter app:

pubspec.yaml
dependencies:
  dnd_kit_flutter: ^0.4.0

Jaspr (web)

Add dnd_kit_jaspr to a Jaspr app. It needs no Flutter SDK:

pubspec.yaml
dependencies:
  dnd_kit_jaspr: ^0.4.0

Shared engine

Depend on dnd_kit directly only for custom adapters or contract tests — the adapters already bundle it:

pubspec.yaml
dependencies:
  dnd_kit: ^0.4.0