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

Added didUpdateWidget. This function called whenever the widget configuration changes. #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Husnain-Asharf
Copy link

If the parent widget rebuilds , the framework will update the [widget] property of this [State] object to refer to the new widget and then call this method with the previous widget as an argument.

Override this method to respond when the [widget] changes.

The framework always calls [build] after calling [didUpdateWidget], which means setState not required in thi function.

I used this function update current date if it's change and animate to this date.

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.

None yet

1 participant