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.
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.
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
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.
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