-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Add key to BottomNavigationBarItem #139617
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
Add key to BottomNavigationBarItem #139617
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
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.
Instead of referencing a private API here, can you explain what the key is used for, and an example use case (doesn't have to be a code example, just a use case, although I wouldn't turn a code example down. :-) ).
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.
thanks for the review, have updated. Hope this is what you were after :)
|
About the 'Linux analyze' step failure, the related error message that will help you getting this step green is : |
3bb6ac3 to
e27cc42
Compare
e27cc42 to
6749436
Compare
gspencergoog
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.
packages/flutter/lib/src/widgets/bottom_navigation_bar_item.dart
Outdated
Show resolved
Hide resolved
packages/flutter/lib/src/widgets/bottom_navigation_bar_item.dart
Outdated
Show resolved
Hide resolved
|
@Gibbo97 are you able to resolve the conflicts here and bring the PR up to date? |
721e83d to
c3d5fa2
Compare
Pass key into _BottomNavigationTile
using suggestions from code review Co-authored-by: Greg Spencer <[email protected]>
c3d5fa2 to
e4b5c63
Compare
|
@gspencergoog ready to be merged |
|
Okay, great, we'll need a second reviewer (I'll find someone) and then we can merge. |
QuncCccccc
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:) Thanks for the contribution!
packages/flutter/lib/src/widgets/bottom_navigation_bar_item.dart
Outdated
Show resolved
Hide resolved
Co-authored-by: Qun Cheng <[email protected]>

Pass key into _BottomNavigationTile
Adding a optional key parameter to BottomNavigationBarItem to be passed through to _BottomNavigationTile.
This will allow easier testing in some scenarios, and fix the splash appearing on the wrong tile.
#139615
#34833