title: Flutter - How to rotate an image around the center with canvas
body: <p>I am trying to implement a custom painter that can draw an image (scaled down version) on the canvas and the drawn image can be rotated and scaled.</p>
  
  <p>I get to know that to scale the image I have to scale the canvas using scale method. </p>
  
  <p><strong>Now the questions is how to rotate the scaled image on its center (or any other point). The rotate method of canvas allow only to rotate on top left corner.</strong></p>
  
  <p><a href="https://gist.github.com/netsmertia/53170bf3a0b2e9fe7822d3786e00971a#file-imagescaleandrotate-dart-L98" rel="noreferrer">Here is my implementation that can be extended</a></p>