I am using PageView
along with BottomNavigationBar
for navigating through my app.
I like the scrolling animation/transition between the pages when scrolling or navigating to a different page.
But the problem is, when I navigate "far distances" (for example, navigating from page 1 to 5) using BottomNavigationBar
, it has to scroll through 2-4 pages very quickly, resulting in a seemingly laggy and unappealing quick scrolling animation.
Is there a way to make it so no matter from which to which page I navigate (using BottomNavigationBar
), it only scrolls right to that page, skipping any pages in between, resulting in a single scroll between pages animation?
I looked up and the closest thing I found was PageController.jumpToPage()
, but it doesn't do any animations at all, which I want.