Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use SignatureController instead of a GlobalKey #40

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Jblew
Copy link

@Jblew Jblew commented Mar 11, 2023

I think that since SignaturePad is a kind of input it is cleaner to use the Controller approach instead of GlobalKey. Just like the TextEditingController for text inputs.

The controller exposes the public methods so there is no need to access the state of the stateful component.

What do you think of that? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant