20 questions
0
votes
0
answers
67
views
Two widgets swapping places on drag and drop in Flutter
I am making a puzzle with hexagonal tiles that the user can rotate and reorder to reach the solution. I would like the tile that is dragged and dropped and the tile that is originally in the dropping ...
0
votes
0
answers
51
views
Flutter: Finding the center position of a Widget
The goal is to highlight a Container's Top or Bottom border depending on when a Draggable hovers over the Container. If the hovered Widget is within the top-half of the DragTarget, then highlight the ...
0
votes
0
answers
56
views
How to create two widgets droppable in each other?
The idea is simple, imagine a Row with only two Containers side by side. One red and another blue.
If we wrap each Container with a Draggable we can now drag these containers.
But I want also to ...
1
vote
0
answers
100
views
Flutter Draggable and dragtarget, how to prevent hover change data?
i have a dragtarget and multiple draggables. I was able to successfully drop the draggable to the dragtarget. But when a new draggable hovers over the placed dragtarget it removes the already placed ...
0
votes
1
answer
164
views
How do I get data to pun into list? flutter and dart
I make draggable in in my app
where I want the data from draggable to pass to dragTarget
and that data put in List of userInput
but as I can see the list is not growing when I try to print it.
what ...
0
votes
1
answer
530
views
multiple draggables are always moving once item is dragged
My goal is to have a dog as my DragTarget and multiple items I can drag to the dog.
Whenever I drag one item the others are switching positions.
Also when I drag the item onto the DragTarget I want to ...
1
vote
2
answers
1k
views
How to get global coordinates inside DragTarget.onMove (Flutter)?
I need to get position of draggable inside DragTarget.onMove. But in DragTargetDetails.offset we have some weird values.
In source code I see that it is set to avatar._lastOffset which is ...
0
votes
1
answer
457
views
DragTarget doesnt call onWillAccept with custom Draggable (Flutter)
I am trying to make Tags which are draggable text so that I can drag them to one of 2 DragTarget I have (ideally being able to move them between 3 DragTarget). Unfortunately I can't make them interact ...
0
votes
1
answer
650
views
Can you programmatically put a Draggable inside a DragTarget?
This sounds a strange thing to ask! But I have two drag targets, and two draggables. I want them to start off one in each target. Then, when one is drag&dropped onto the second target, the second ...
4
votes
0
answers
733
views
How do I keep my widget state when reordering them via Draggable&DragTarget?
I'm using this reorderables package. This package works by having a list of children widgets that are each wrapped with a Draggable and put inside a DragTarget. Before that the childs key is assigned ...