Skip to content
pubscout

super_drag_and_drop

0.9.1, released a year ago by nativeshell.dev

Native drag and drop for Flutter across desktop, mobile and web.

Quiet but busy
$ flutter pub add super_drag_and_drop
Source repository

What it does

Provides a DragItemWidget and DropRegion that enable native drag‑and‑drop interactions. It supports custom data formats, virtual files and multi‑finger gestures on iOS.

AI-written summary of version 0.9.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Need to drag content between Flutter apps or to external apps
  • Require custom data formats or virtual file support
  • Need multi‑finger drag on iOS
  • Want a single‑purpose widget for drag‑and‑drop

Skip it when

  • You need a lightweight plugin without Rust or NDK dependencies
  • You only need simple drag‑and‑drop on a single platform

Strengths

  • Cross‑platform support (Android, iOS, macOS, Windows, Linux, Web)
  • High performance via Rust backend
  • Supports custom data formats and virtual files
  • Multi‑finger drag on iOS

Weaknesses

  • Requires Rust toolchain and NDK for first build
  • Large binary size on some platforms
  • Web drag support limited to same tab

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
3

Install Rust (or let plugin download binaries). On Android, NDK will be auto‑installed; specify minSdkVersion 23. Add a content provider in AndroidManifest.xml if using custom data or super_clipboard.

```dart
class MyDraggableWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return DragItemWidget(
      dragItemProvider: (request) async {
        final item = DragItem(localData: {'x': 3, 'y': 4});
        item.add(Formats.plainText('Plain Text Data'));
        item.add(Formats.htmlText.lazy(() => '<b>HTML generated on demand</b>'));
        return item;
      },
      allowedOperations: () => [DropOperation.copy],
      child: const DraggableWidget(child: Text('This widget is draggable')),
    );
  }
}
```

Alternatives

Packages that do the same job and could replace super_drag_and_drop.

Works with

Packages commonly used together with super_drag_and_drop: ones it builds on, ones built on it, and its own family.