2

I want to create a drag and drop app, but all of the examples I see have the drop being a predefined target. Is it possible and would I implement a drag and then drop anywhere I release my finger with the same properties and data transfer methods attached ?

I have looked at multiple examples and tutorials and the docs seem cryptic or I missed something for sure

Ryan James
  • 19
  • 2
  • Maybe I could help you with it, if you give more information what you are willing to build. – Kherel Sep 09 '19 at 16:39
  • check this example of using gesture detector https://stackoverflow.com/questions/51185894/how-to-create-a-range-slider-with-thumb-as-png-image-in-flutter/57826401#57826401 – Kherel Sep 09 '19 at 16:39
  • Hi and thank you . Is there a way I can direct message you. Are you interested in working on a project together ? – Ryan James Sep 22 '19 at 16:05
  • Sure, my email is kherel@gmail.com.. – Kherel Sep 23 '19 at 07:00
  • Here is a solution using Positioned() and RenderBox sizing: https://stackoverflow.com/questions/57080144/how-to-move-element-anywhere-inside-parent-container-with-drag-and-drop-in-flutt/58682175#58682175 – Paul Mundt Nov 03 '19 at 17:45

1 Answers1

0

You can use gesture detector it has several properties: onPanEnd, onPanStart, onPanUpdate + vertical and horizontal drag properties

From these you can get details of local or global points of touch, and build your own logic on it data.

Kherel
  • 14,882
  • 5
  • 50
  • 80