lukepighetti / salomon_bottom_bar

Yet another bottom navigation bar, but with a few key promises.
https://pub.dev/packages/salomon_bottom_bar
MIT License
258 stars 55 forks source link

Missing Controller option #11

Closed applicationsweb closed 3 years ago

applicationsweb commented 3 years ago

Hello, i don't see the "controller" option in your widget. Is it normal ?

I need to have this option for change a tab from an other page.

kamathprasad9 commented 3 years ago

You don't need a controller option as such. It works fine without one. Check this out for an example.

lukepighetti commented 3 years ago

BottomNavigationBar doesn't use a controller so we don't use a controller. See promise number 3 in the readme.

applicationsweb commented 3 years ago

I need controller option for changing tabs from a button for exemple. Look this url : https://stackoverflow.com/questions/50887790/flutter-changing-the-current-tab-in-tab-bar-view-using-a-button

Your plugin don't propose this option so i can't do it...

So i change your plugin by this plugin : https://pub.dev/packages/persistent_bottom_nav_bar

Persistent_bottom_nav_bar have a controller option

lukepighetti commented 3 years ago

How does BottomNavigationBar do it? That's how we do it, and if it's not working we should fix it.

applicationsweb commented 3 years ago

Your competitors' plugins use the concept of Controller.

Look their documentation : https://pub.dev/documentation/persistent_bottom_nav_bar/latest/

lukepighetti commented 3 years ago

This package makes an explicit promise to use BottomNavigationBar semantics. I don't have competitors. There are other packages on pub that make different promises.