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

Quality issues on web #16

Closed Uni2K closed 2 years ago

Uni2K commented 3 years ago

The image quality is not good in flutter web. To be fair, similar libraries have the same issue. It seems to be something fundamental, maybe you can look into it. This is how it looks: issue

The settings are: threshold: 0.01, smoothRatio: 1, velocityRange: 5.2,

Its really impossible to make it look better, the above mentioned settings are the best thing I was able to find. Smoothing has a very small effect on the result, maybe this is related to the issue. It makes no big difference whether smoothing is 0.01 or 1.

RomanBase commented 3 years ago

Hey this seems like problem with target device or maybe performance issues..

Try to set larger threshold, because with 0.01 there is no place for smoothing. Minimal should be 2.0 and on low devices this value can be even larger.