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

Moving pageIndexNotifier.addListener from initState to a separated method #4

Merged
merged 1 commit into from Jan 30, 2019

Conversation

eudangeld
Copy link
Contributor

The pageIndexNotifier.addListener was being invoked in initState but initState is called only once in the widget's life cycle so when you navigated from one screen to another the indicator stops working. I moved the call to a method that is called in build.

@leocavalcante leocavalcante added help wanted Extra attention is needed invalid This doesn't seem right labels Jan 30, 2019
@leocavalcante leocavalcante merged commit 975a449 into leocavalcante:master Jan 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants