philip-brink / DragAndDropLists

Flutter package for drag-and-drop reordering of two-level lists
BSD 3-Clause "New" or "Revised" License
253 stars 128 forks source link

Add dismissible widget to dragHandle + child #26

Open erishabh opened 3 years ago

erishabh commented 3 years ago

Hi, I am trying to add a dismissible widget on the list items (drag handle + child list item). I was unable to find where the add my code. I was wondering if you could direct me to where I can make the edits so that when the dismissible is called the drag handle moves with the child (I noticed they are in a stack right now). This is for the list items in an expandable list.

Thank you

vbuberen commented 3 years ago

Hey @erishabh I had the same issue where drag handle stays when you try to use dismissible widget. As a workaround I suggest to put some transparent widget as dragHandle for DragAndDropLists and put your actual handle widget inside the dismissible item itself. This way it will work properly with dragging only using handles and the handle widget with move when you dismiss it.