transformer_page_view icon indicating copy to clipboard operation
transformer_page_view copied to clipboard

Fix for when pageController was detached from widget tree

Open emvaized opened this issue 4 years ago • 1 comments

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.

emvaized avatar Jun 04 '20 00:06 emvaized

Thank you! Helped me a lot!

chrystoffer avatar Jul 07 '20 12:07 chrystoffer