i am trying to determine any point height on screen by touching on it.
here is screenshot
Note: the black point is not widget , i just made it toc explain , i want to determine the height of any point where the finger touch
How could i actives this ?
CodePudding user response:
you might want to take a look here: How to Calculate the Coordinates of touch in Flutter? seems like the issue you are having is solved here
CodePudding user response:
i found good answer by @pskink
All what we need is to wrap out widget into GestureDetector
and use onPanStart
property
onPanStart: (d) => log(d.localPosition.toString()),
thanks for wonderful person @pskink