4Q-s-r-o / signature

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

> FEATURED: add enabled option #74

Closed alexlovar closed 1 year ago

alexlovar commented 1 year ago
    > such feature is not supported by plugin itself

as a workaround, you can wrap signature widget to GestureDetector, that would prevent signature plugin from detecting touches

Hi, I had the same issue but GestureDetector was not the correct answer for me! I have wrapped the signature pad with IgnorePointer() and this way easily disabled the signature from being painted when I don't want to.

I think it may be a good feature for this package to define a boolean like Enabled to easily enable/disable the signature canvas from being painted or not.

Hope it helps.

Originally posted by @prooshani in https://github.com/4Q-s-r-o/signature/issues/25#issuecomment-922364059