I'm using compose-dnd in my app, and I needed to be able to toggle whether or not the drag-and-drop was enabled. I couldn't see a built-in solution, so I created a wrapper @Composable that adds this functionality. I decided I might as well open up a PR and see if its something you'd want to add to the library.
Hi,
Sorry for the late reply.
Thanks for your contribution. I think that it can be added as a parameter to the existing DragAndDropContainter instead of creating a new one.
I'm using
compose-dnd
in my app, and I needed to be able to toggle whether or not the drag-and-drop was enabled. I couldn't see a built-in solution, so I created a wrapper@Composable
that adds this functionality. I decided I might as well open up a PR and see if its something you'd want to add to the library.Let me know what you think 👍