Determine type of widget on Gtk.drag_motion - gtk

In my app I have two widgets which I can drag and drop to each other. When the widget is dragged above another widget there is a motion revealer, which indicates that a widget is dragged over another one. This works fine.
Now I want to style the motion revealer differently, depending on which widget is currently dragged.
Is there a way to get the type information of the dragged widget during the drag_motion callback?

Related

While dragging any widget ,can we drop same widget to multiple drag targets/positions

When we drag at once any widget and want to drop that same draggable widget to multiple places and on double tap it should release the draggable widget .
I want this to be done in flutter , i tried this but can achieve drop at one position only and grabbed object is released as soon we drop, but want to do at multiple position without releasing grabbed object until we double tap.

Flutter AnimatedSlide breaks hitbox

I have an AnimatedSlide widget as a child of a column. Depending on a simple condition, it should slide between its initial and a destination position. This works just fine.
The problem is that the AnimatedSlide widget has an InkWell as one of its children. The InkWell's onTap callback works as intended if the AnimatedSlide widget is in is initial position. However, in the destination position, nothing happens when tapping the InkWell.
It seems like the hitbox disappeared completely because even tapping the initial position doesn't do anything.
Is there any way to get this working or is AnimatedSlide simply not meant to be used with InkWells, Buttons, etc.?

Does draggable stateful widget works?

I'm trying to make my first app and I have a problem:
I made a gridview of longpress draggable widget who can be deleted when I move them on the corresponding drag target.
Everything works well when I create these widget as statelesswidget.
The problem is that when I try to put these widget in Stateful widget it doesn't work well..
The choosen widget isn't removed correctly
Does someone already had this problem?
(Sorry for my Bad english)
Thanks

How can I drag a widget not directly but through slider widget in flutter

I want to add a dragging effect on a particular widget using slider.

Move a draggable to a dragtarget automatically for the user in Flutter

Here is my use case, I'm using draggable containers and a dragtarget (container with the question mark) for this little game (see linked image).
I've built that logic so far, so if the user drags the "i" in the image linked below, it will be accepted and go to the next word.
My question is: is there a way in flutter to allow the user to just tap on the draggable containers and make them move automatically to the dragtarget (using the logic already defined in the onAccept property of the dragtarget widget) ?
Refered screen image here
No, that is not possible. As the name says Draggables meaning it has to be dragged. Look what the official documentation says about Draggables and DragTarget
Draggable
A widget that can be dragged from to a DragTarget.
DragTarget
A widget that receives data when a Draggable widget is dropped.
I hope this helps.