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

when use on web, the width is matching the browser, can we allow align center? #9

Closed jeffreyliu8 closed 2 years ago

jeffreyliu8 commented 3 years ago

Screen Shot 2021-09-08 at 12 26 05 PM

lukepighetti commented 3 years ago

Does BottomNavigationBar act differently?

Paul-cbt commented 3 years ago

Hello, you can put a margin around the SalomonBottomBar, like this for example: margin: EdgeInsets.fromLTRB( MediaQuery.of(context).size.width > 700 ? MediaQuery.of(context).size.width / 3 : 40, 5, MediaQuery.of(context).size.width > 700 ? MediaQuery.of(context).size.width / 3 : 40, 10),

Best, Paul

lukepighetti commented 2 years ago

Please feel free to reopen if we diverge from BottomNavigationBar behavior