![]() ![]() In the onMove callback of the listener I have put in some print statements to show what is going on.I have put a listview wrapped with listener widget in a widget of its own to avoid having to use a global key (Global keys are not making any difference in any case).I have created a widget named DragDropItem which is nothing but LongPressDraggable and DragTarget put together.I have used a horizontal listview containing vertical listviews.So, BoardView and DragDropLists can't be used. The listviews will be nested 3 levels deep. ![]() This leads me to conclude that the other contexts are inactive at the moment but I am not sure why. There is a second problem here - the print statements are printing out the position of the first ListView(the one where the drag originates).But during my searches I came across a fact that Listener needs a TapDown Event to work which is true in the first Listview but not in the others. For this I used Listener because it doesn't compete in the GestureArena so was the natural choice. If the drag reaches top or bottom of the ListView the items will scroll automatically.The items will be dragabble between the listviews for this I have used the Draggable and DragTarget Widgets and this part works fine as can be seen in DragDropItem below.I am trying to implement drag and drop between multiple listviews in flutter and am fairly a new comer to flutter.īelow is the demo video of what I am trying to do and what is actually happening:.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |