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

disable button from controller #26

Closed
Miamoto-Musashi opened this issue Dec 7, 2020 · 1 comment
Closed

disable button from controller #26

Miamoto-Musashi opened this issue Dec 7, 2020 · 1 comment

Comments

@Miamoto-Musashi
Copy link

is there a way to disable programmatically?
the scenario is that I have multiple buttons on the same page and I want to prevent the user to click on all of them, during the first click I would like to disable all remaining controllers

thanks

@chrisedg87
Copy link
Owner

Hi @Miamoto-Musashi, the controller is really intended to manage the animation state, so there isn't any way to disable the button that way. Disabling the button is done in the same way as the other standard buttons; by setting the onPressed function to null.
Hope that helps.

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

No branches or pull requests

2 participants