Skip to content

Conversation

@yash1200
Copy link
Contributor

@yash1200 yash1200 commented Nov 23, 2020

Description

This PR adds showToolTip property in BottomNavigationBar and toolTip property in BottomNavigationBarItem.

Related Issues

Fixes #71049

Tests

I added the following tests:

  • Shows custom ToolTip message if it is provided in BottomNavigationBarItem
  • Doesn't show tool tip if showToolTip is false.

Checklist

Before you create this PR, confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I signed the [CLA].
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Did any tests fail when you ran them? Please read [Handling breaking changes].

  • No, no existing tests failed, so this is not a breaking change.

@flutter-dashboard flutter-dashboard bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Nov 23, 2020
@google-cla google-cla bot added the cla: yes label Nov 23, 2020
@yash1200 yash1200 changed the title Added showToolTip in BottomNavigationBar [BottomNavigationBar] Adds more control to ToolTip Nov 23, 2020
@Hixie
Copy link
Contributor

Hixie commented Nov 26, 2020

Setting tooltip to the empty string might be a cleaner way to hide tooltips, it avoids adding more API surface and uses a value that otherwise has no useful purpose and that pretty naturally represents "no tooltip".

@Hixie
Copy link
Contributor

Hixie commented Nov 26, 2020

cc @HansMuller

Copy link
Contributor

@LongCatIsLooong LongCatIsLooong left a 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 comprehensive test cases.

@yash1200
Copy link
Contributor Author

@LongCatIsLooong I think this should be merged now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BottomNavigationBar has no option to remove tooltip or change the tooltip from its icon label [Web] [Desktop]

4 participants