PersistentBottomNavBar
PersistentBottomNavBar copied to clipboard
Controller index
How can I get the index of the current page on the nav bar. I'm using controller.index but that only updates when I reload the app, it doesn't update on tab change.
Does it work if you print the index? Because I think the controller works, Are you sure it's not just that you need to update the the state or change to a stateful widget?
...however I could be wrong.