I am trying to implement image scaling and rotation with flutter canvas api using custom painter. The scale is achieved but unable to rotate the image on its center, the default rotate is on its top left corner.
I have also tried to translate and rotate and translate back but no success.
The same questions is also asked on SO here. here is my try gist
I am trying to implement image scaling and rotation with flutter canvas api using custom painter. The scale is achieved but unable to rotate the image on its center, the default rotate is on its top left corner.
I have also tried to translate and rotate and translate back but no success.
The same questions is also asked on SO here. here is my try gist