-3

I implemented tab bar in my application

and then I want tabbar screens to be change when the specific moments occur

but buttons should not be used (for instance, bottom navigation bar buttons)

if you have three tab buttons and assume current screen is first(index 0),

how to accomplish to go to page third?(index 2)

thanks

dontknowhy
  • 2,480
  • 2
  • 23
  • 67

1 Answers1

0

If you have a TabController even if you don't have a TabBar(but you have a TabBarView with that controller attached) then just use the method animateTo() with the index you want to move and a duration for the animation (if you want a different duration). tabController.animateTo(2)

EdwynZN
  • 4,895
  • 2
  • 12
  • 15