transformer_page_view
transformer_page_view copied to clipboard
Fix for when pageController was detached from widget tree
There is a method:
_pageController.animateToPage(initPage, duration: widget.duration, curve: widget.curve);
in didUpdateWidget(),
which caused problems when PageView is stateless and rebuilded (threw an error: "controller is not attached to any scrollviews").
My small patch fixes this error.
Thank you! Helped me a lot!