RomanBase / hand_signature

A Flutter plugin providing signature pad for drawing smooth signatures.
https://pub.dev/packages/hand_signature
MIT License
108 stars 25 forks source link

Feature/scale to fill #22

Closed TheManuz closed 2 years ago

TheManuz commented 2 years ago

Hello RomanBase,

I updated my brach as you suggested.

When the scaleToFill boolean is true (default behavior) it will behave like before. When the scaleToFill boolean is false, it will use the canvas bounds instead of the path bounds, so the transparent pixels outside the path will not be trimmed.

I've also updated the method CubicArc.scale() and CubicLine.scale() to scale the size of the stroke. This will prevent the path from becoming thinner when upscaling or thicker when downscaling.

I've also updated the example to show the feature, as you can see in the screenshots below.

IMG_0163

IMG_0162

I hope everything is ok for the merge request, let me know if anything else is needed!

RomanBase commented 2 years ago

Hey, looks good to me and thanks for other minor changes. I will publish update to pub.dev this week.

TheManuz commented 2 years ago

Thanks you very much, looking forward for the release!