How to rotate an image on an arbitrary point inside the image?

Posted by Rohit Kumar | Updated on

If you want to rotate an image on an arbitrary point inside the image? If you do want to animate, RotationTransition almost does what you want, except the alignment isn’t configurable.

Here is a solution that uses the FractionalOffset class to specify the point to rotate around. Below is an 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