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

The getter 'currentPage' was called on null #4

Open
ainulya16 opened this issue Dec 21, 2019 · 1 comment
Open

The getter 'currentPage' was called on null #4

ainulya16 opened this issue Dec 21, 2019 · 1 comment

Comments

@ainulya16
Copy link

No description provided.

@rizaldyaf
Copy link

when first time widget rendered the slider key states not yet set, so the currentState in sliderKey.currentState.currentPage is null. here's my solution:
sliderKey.currentState != null ? sliderKey.currentState.currentPage : 0

correct me if I wrong 🙏

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