-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[FR] BottomNavigationBar fixed with no titles. #22956
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
Conversation
|
We still need the text for the titles, because otherwise we can't provide anything to the accessibility layer. But maybe we can have a new |
|
Thank you so much, @dooboolab , for writing this! Make the following changes when you have a moment:
|
|
@willlarche Thank you for the review. I've updated the codes applying to your review. I've created |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@willlarche Hi. Sorry for the late comeback. I was busy preparing for the Y-Combinator interview. Below is expected feature.
I supported this providing |
|
Yes, sorry. The accessibility experience needs to be the same with and without titles. Accessibility in Flutter is done thru the Semantics APIs. https://www.didierboelens.com/2018/07/semantics/ I've posted an image of what the semantics tree looks like with the titles (like before) and then what the tree looks like without the titles (new version.) We need them to be identical no matter what the front end looks like. So, even without seeing the titles, a blind user would be able to hear them. |
|
@hyochan are you ready for re-review on this? |
|
Did patch my flutter using this commit. Eg. win my case bottom_navigation_bar builds fixed label. I declare: BottomNavigationBarItem( I still have "ghost" space for the text and therefore my icons are not centered on the main axis. |
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
03ce144 to
4ce9d68
Compare
|
CLAs look good, thanks! |
|
@willlarche I've just updated my code. Sorry for the delay, I needed to think the way to support @ohenley My code wasn't ready since I was applying to support |
willlarche
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, @hyochan . Thank you. I'll do a proper review Tuesday but I wanted to let you know that I'm still seeing the height change when there's showLabel: false. Here's from my simulator. The clock icon should not rise, right?

|
@willlarche Well, I thought that was expected when which is the default type. If you don't want your icon to rise, I think we should use below. P.S. I've just pushed another commit since I found unnecessary margin in |
|
@hyochan: @willlarche and @hyochan : |
|
You're right! Thanks for your patience. So, this looks almost there. I'll put in a couple notes at the request of @jonahwilliams who will take over review as I'll be unavailable for 3 weeks. |
packages/flutter/lib/src/widgets/bottom_navigation_bar_item.dart
Outdated
Show resolved
Hide resolved
|
@jonahwilliams I've made the fix. Thanks. |
6bda283 to
a7dc74c
Compare
|
CLAs look good, thanks! |
|
@jonahwilliams Thanks. I was able to do the job with your grateful help 🍻. P.S I've tested this locally and checked it is passing. I don't get why |
|
Several files have trailing whitespace: |
|
@jonahwilliams 's approval and passing tests all that's needed now. |
|
Hi Hyo, thanks so much for opening this PR and working on this feature since it is highly requested! I’m making a number of unrelated changes to the |
Fixed filtering down the predicate when testing Opacity of showLabel=false [BottomNavigationBar].
|
@willlarche @jonahwilliams I think I made it now. Sorry that it took me times to recognize the process of contribution to @johnsonmh Hi. Thank you for the great offer, but I'd like to make this |
jonahwilliams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
will land when tree is unfrozen
|
Put a temporary flag on it so I can merge it simultaneously with #27698 next week. |
|
@hyochan , You've worked super hard on this and we want to land it. Since @johnsonmh 's PR would have a slight breaking change to yours, we're going to merge them together next week so there's no Flutter release between their merges. Just means holding for a few days! You're all set. |
|
Thank you so much. I am very honored to contribute to this awesome |
|
No no. You did great. Sometimes development just happens in parallel like
this.
…On Fri, Feb 15, 2019 at 01:43 Hyo Chan Jang ***@***.***> wrote:
Thank you so much. I am very honored to contribute to this awesome Google
project. I will do more and better next time.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22956 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABNm5fS55xp3UrQVLRLwsY6Km6ermxmcks5vNlcdgaJpZM4XXnRG>
.
|
|
@HansMuller I thought I've already answered above that I wish this |
|
@hyochan Right, but unfortunately the work you did here was independently duplicated in another PR that had broader scope (#28159). It wouldn't make sense to land this PR only to effectively remove it with #28159. I wanted to give you credit for the work you did, which is why I added you as a co-contributor to #28519. |





Support the feature request for #22882.
BottomNavigationBar to have no titles.