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

Initialize RoundedLoadingButtonController listeners in build() not in initState() #42

Closed
hagar-yasser opened this issue Aug 22, 2021 · 1 comment

Comments

@hagar-yasser
Copy link

This will solve the problem in issue #14.

The problem happens every time the widget that holds the controller changes (so the controller itself changes). The problem occurs because some fields in the controller gets initialized only one time in the initState of the RoundedLoadingButton, so when the controller changes but the state doesn't change, the fields don't get initialized.

@hagar-yasser hagar-yasser changed the title Initialize RoundedLoadingButtonController listeners in build() not initState() Initialize RoundedLoadingButtonController listeners in build() not in initState() Aug 22, 2021
@chrisedg87
Copy link
Owner

Hi @hagar-yasser, did you mean to raise this as a pull request?

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