4Q-s-r-o / signature

Flutter plugin that creates a canvas for writing down a signature
MIT License
254 stars 85 forks source link

Changing Shape of Signature Container #44

Open marcusjtl opened 3 years ago

marcusjtl commented 3 years ago

Would it be possible to modify the shape of the signature container to be a circle as well as in the image of the signature saved?

MartinHlavna commented 3 years ago

I am quickly thinking about this.

  1. Canvas and exported image will probably be always rectangle, but you could easily wrap it in
Container(
    decoration: BoxDecoration(
    shape: BoxShape.circle,
    ),
    child:   ///IMAGE
    ),
  1. This should also clip Signature widget into circle. I am not sure however how will the widget behave when drawing on the "invisible" parts.
MartinHlavna commented 2 years ago

We are currently not considering to implement this. But if anyone can submit PR we will gladly accept.