my_draggable library
Classes
-
DragAvatar<
T> -
LongPressMyDraggable<
T> - Makes its child MyDraggable starting from long press.
-
MyDraggable<
T> - A widget that can be dragged from to a MyDragTarget.
-
MyDraggableState<
T> -
MyDragTarget<
T> - A widget that receives data when a MyDraggable widget is dropped.
Enums
- DragAnchor
- Where the MyDraggable should be anchored during a drag.
Typedefs
- MyDraggableCanceledCallback = void Function(Velocity velocity, Offset offset)
- Signature for when a MyDraggable is dropped without being accepted by a MyDragTarget.
-
MyDragTargetAccept<
T> = void Function(T data) - Signature for causing a MyDragTarget to accept the given data.
-
MyDragTargetBuilder<
T> = Widget Function(BuildContext context, List< T> candidateData, List rejectedData) - Signature for building children of a MyDragTarget.
-
MyDragTargetLeave<
T> = void Function(T data) - Signature for when a MyDraggable leaves a MyDragTarget.
-
MyDragTargetWillAccept<
T> = bool Function(T data) - Signature for determining whether the given data will be accepted by a MyDragTarget.