flutter_page_slider
flutter_page_slider copied to clipboard
The getter 'currentPage' was called on null
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 🙏