Hey everyone, when using `dragAndDropSource` and `...
# compose
j
Hey everyone, when using
dragAndDropSource
and
dragAndDropTarget
to implement a drag and drop behavior. I notice there is a default effect while dragging that reduces the dragged composable’s
alpha
value. Is there a quick way to remove this default effect? I can see there is
drawDragDecoration
which only gives me a DrawScope. I can also manually implement the drag and drop behavior using
pointerInput
but that would be more complex. I’m trying to utilize
dragAndDrop*
modifiers.
a
For anyone else looking for the answer.
Copy code
DragAndDropTransferData(flags = View.DRAG_FLAG_OPAQUE)
when calling
startTransfer