Flutter: Swipe PageView using Button Click

--

To disable swiping by Gesture, add following property to your PageView:

PageView(physics:new NeverScrollableScrollPhysics())

To navigate to next page/widget in PageView, add following code to your button’s onPressed attribute:

_pageController.nextPage(
duration: Duration(milliseconds: 1000),
curve: Curves.easeIn
);

Hope it helps. ;)

--

--