How to get the local position from the GestureDetector in flutter?

Posted by Andre Scott | Updated on

Want to get the local position from the GestureDetector in flutter? You can use a RenderObject and then transform the global positions into a local one similar to this simple example:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers