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
BottomNavigationBar items become white when more than 3 items are present #13642
Comments
/cc @xster |
cc @HansMuller, I vaguely remember seen an older bug about this but I can't find it |
when use BottomNavigationBarType.fixed that ok ,but when use BottomNavigationBarType.shifting that wrong |
I too have this problem. anyone know how to fix this? |
same problem to me |
I have added this to our list of things to look at later this year. We would be happy to review patches if anyone has the opportunity to look at the code and figure out what's going on before we get to it, though. |
When more than 3 BottomNavigationBar items are provided the type, if unspecified, changes to When the BottomNavigationBar's type is The overall idea with The doc for BottomNavigationBar, and NavigationBarItem needs to be improved. |
@HansMuller Thanks, that worked! |
@HansMuller, kudos! |
If you didn't understand how to fix it:
|
Am I the only one that thinks that it shouldn't change behavior based on the number of tabs automatically? |
thank you 👍 |
thank you. |
What do I do, if I don't want the icons to be white, yet it should have the behavior of shifting? |
Why don't just make the default type .fixed? |
I know this issue has been closed but it still feels like a bug even though the documentation has been nicely updated. |
git@github.com:flutter/engine.git/compare/6c763bb551cb...8ebb318 git log 6c763bb..8ebb318 --no-merges --oneline 2019-11-06 47866232+chunhtai@users.noreply.github.com Revert "Issues/39832 reland (#13642)" (flutter/engine#13720) 2019-11-06 chinmaygarde@google.com Ensure that the device pixel ratio is taken into account with window metrics in physical pixels. (flutter/engine#13708) 2019-11-06 jason-simmons@users.noreply.github.com Fix NPE in splash screen lookup (flutter/engine#13719) 2019-11-06 skia-flutter-autoroll@skia.org Roll src/third_party/skia 6e54a299cce9..6790423f84ef (11 commits) (flutter/engine#13718) 2019-11-06 bkonyi@google.com Roll src/third_party/dart 24f1f313a2..462a448ac8 (2 commits) 2019-11-06 bkonyi@google.com Roll src/third_party/dart 80fc4d54e5..24f1f313a2 (5 commits) 2019-11-06 skia-flutter-autoroll@skia.org Roll src/third_party/skia f00524707da7..6e54a299cce9 (1 commits) (flutter/engine#13715) 2019-11-06 skia-flutter-autoroll@skia.org Roll fuchsia/sdk/core/mac-amd64 from bCFtP... to 6Du8E... (flutter/engine#13714) 2019-11-06 bkonyi@google.com Roll src/third_party/dart 51016532e8..80fc4d54e5 (2 commits) 2019-11-06 skia-flutter-autoroll@skia.org Roll src/third_party/skia cdc0c23f1a2e..f00524707da7 (2 commits) (flutter/engine#13712) 2019-11-06 bkonyi@google.com Roll src/third_party/dart 8bdca37e98..51016532e8 (21 commits) 2019-11-06 skia-flutter-autoroll@skia.org Roll src/third_party/skia f3d4109a793b..cdc0c23f1a2e (36 commits) (flutter/engine#13707) 2019-11-06 matthew-carroll@users.noreply.github.com Fix splash screen lookup. (#44131) (flutter/engine#13660) 2019-11-06 gspencergoog@users.noreply.github.com Fix editing selection and deletion on macOS (flutter/engine#13702) 2019-11-06 mouad.debbar@gmail.com [web] Don't send keyboard events from text fields to flutter (flutter/engine#13699) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC garyq@google.com on the revert to ensure that a human is aware of the problem. To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
I provided the " backgroundColor" agrument for each "BottomNavigationBarItem" and the problem is solved. |
Eu consegui resolver o problema inserindo a propriedade showUnselectedLabels: true, no BottomNavigationBar return new BottomNavigationBar(
|
what is we don't want the behavior to be shifting if we have more than three items. Is there any work around for it ? |
add showUnselectedLabels:true to BottomNavigationBar |
I think the same |
This comment was marked as spam.
This comment was marked as spam.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to Reproduce
When adding more than 3 items in a
BottomNavigationBar
, all items turn white, and are unreadable on the light-gray background. Also, the active item is also white, and not the providedfixedColor
. A minimal code sample can be found hereAlso see the following images:
Logs
N/A
Flutter Doctor
The text was updated successfully, but these errors were encountered: