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.
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.
- kalender
A customizable calendar widget with day, multi-day, month, and schedule views.
92Compare - flutter_reorderable_grid_view
Animated GridViews and Wraps with drag-and-drop reordering and item animations.
91Compare - slider_captcha
A slider captcha widget for user authentication and drag-and-drop validation.
73Compare - drag_and_drop_lists
A flutter package to allow drag-and-drop reordering of two-level lists.
59Compare
Works with
Packages commonly used together with super_drag_and_drop: ones it builds on, ones built on it, and its own family.
- super_clipboardsuper_drag_and_drop depends on itComprehensive clipboard access package supporting rich text, images, and custom data formats.
- super_native_extensionssuper_drag_and_drop depends on itLow level interface for native APIs such as clipboard and Drag and Drop
- super_context_menuSame familyContext menu widget supporting native menus on platforms and drag & drop transitions on mobile.
- super_keyboard_layoutSame familyKeyboard layout mapping and layout change notifications for Flutter applications.
- super_hot_keySame familyRegister global system-wide hot keys on macOS and Windows.