flutter_carousel_slider
flutter_carousel_slider copied to clipboard
The getter 'options' was called on null.
The following exception was reported by one of our user's devices:
NoSuchMethodError: The getter 'options' was called on null.
Receiver: null
Tried calling: options
carousel_controller.dart in CarouselControllerImpl.animateToPage at line 106
I'm having the same problem, I hope they can help us with this soon
I'm having the same problem when using custom controller
it appears only if you do reloads, otherwise working okay
it appears only if you do reloads, otherwise working okay
Thanks for this
It turns out I defined my options variable inside a function that was returning the carousel widget, so whenever it gets re-rendered it would throw that error, so I fixed it by simply globalizing the variable initialization.. hope this helps
it appears only if you do reloads, otherwise working okay
Thanks for this
It turns out I defined my options variable inside a function that was returning the carousel widget, so whenever it gets re-rendered it would give that problem, so I fixed it by simply globalizing the variable initialization.. hope this helps
Thanks a lot @abdurahman-shiine I did the same and it works well.
it appears only if you do reloads, otherwise working okay
Thanks for this
It turns out I defined my options variable inside a function that was returning the carousel widget, so whenever it gets re-rendered it would throw that error, so I fixed it by simply globalizing the variable initialization.. hope this helps
Can you show a little more of your idea in practice? I couldn't reproduce.