Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bottom Nav Bar does not show if there are four or more items #5

Closed
jaxondu opened this issue Mar 21, 2018 · 2 comments
Closed

Bottom Nav Bar does not show if there are four or more items #5

jaxondu opened this issue Mar 21, 2018 · 2 comments
Labels

Comments

@jaxondu
Copy link

jaxondu commented Mar 21, 2018

Trying out this example:

https://github.com/mjohnsullivan/flutter-by-example/tree/master/13_bottom_nav_bar

When I add in two more BottomNavigationBarItem to four, the bottom navigation bar does not display on the screen but you can still tap on it to navigate through the various Offstage widget.

@mjohnsullivan
Copy link
Owner

Never tried more than three; I'll take a look into it.

@mjohnsullivan
Copy link
Owner

Turns out that when there's more than 3 items in the nav bar, it changes it's type from fixed to shifting, and shifting, and shifting renders items in white:

https://docs.flutter.io/flutter/material/BottomNavigationBar-class.html

I'll update the sample to talk about this and give an example of how it's handled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants