drag_and_drop_flutter library
Support native drag and drop of text, files and directories in Flutter.
Classes
- DataTransferItem
- An item in a drag operation.
- DataTransferItemMetadata
- Metadata of a a DataTransferItem.
- DirectoryEntry
- A directory set on a drag operation.
- DragAndDropFlutterPlatform
- Platform abstraction for building a drag and drop widget.
- DragData
- Data for a drag and drop operation.
- DragDropArea
- Widget that handles native drag and drop.
- DragDropAreaBuilder
- A Widget that rebuilds when data is dragged over it, and provides a callback for handling dropped data.
- FileEntry
- A file set on a drag operation.
- FilesystemEntry
- Abstraction for a directory or file in a drag operation.
- NullDragAndDropPlatform
- An implementation of DragAndDropFlutterPlatform that does nothing.
Enums
- DragDropType
- The type of a drag and drop operation.
Typedefs
-
DataTransferTypeFilter
= bool Function(List<
DataTransferItemMetadata> ) -
Function signature for
canDrop
in DragAndDropFlutterPlatform.buildDropArea. - DragDropAreaWidgetBuilder = Widget Function(BuildContext context, bool isOver, Widget? child)
- Widget builder for DragDropAreaBuilder.
-
DragEnterCallback
= void Function(List<
DataTransferItemMetadata> items) -
Function signature for
onDragEnter
in DragAndDropFlutterPlatform.buildDropArea. - DragExitCallback = VoidCallback
-
Function signature for
onDragExit
in DragAndDropFlutterPlatform.buildDropArea. - DropCallback = void Function(DragData data)
-
Function signature for
onDrop
in DragAndDropFlutterPlatform.buildDropArea.