BilalShahid13 / PersistentBottomNavBar

A highly customizable persistent bottom navigation bar for Flutter
BSD 3-Clause "New" or "Revised" License
506 stars 371 forks source link

How to implement a change notifier #234

Open agares29 opened 2 years ago

agares29 commented 2 years ago

I would like to know how to implement a Change Notifier to change to another Nav Bar Option when user clicks on a button.

I tried changing the

_controller.index

For my

provider.currentIndex

Everything works fine when the user clicks on the options on the Nav Bar, but it does not work when I use the button, it just changes the icon selected on the Nav Bar bit the screen does not change

Does anybody know how to make that work?