Skip to content

Don't display empty tooltips (Tooltips with empty message property)#87638

Merged
fluttergithubbot merged 9 commits into
flutter:masterfrom
bambinoua:master
Sep 10, 2021
Merged

Don't display empty tooltips (Tooltips with empty message property)#87638
fluttergithubbot merged 9 commits into
flutter:masterfrom
bambinoua:master

Conversation

@bambinoua

Copy link
Copy Markdown
Contributor

If tooltip message is empty than no need to display empty dark rectangle.

If tooltip message is empty than no need to display empty dark rectangle.
@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@flutter-dashboard flutter-dashboard Bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Aug 4, 2021
@google-cla google-cla Bot added the cla: yes label Aug 4, 2021
Remove trailingg spaces
@dkwingsmt

Copy link
Copy Markdown
Contributor

The change looks ok. Can you add a unit test so that someone doesn't accidentally undo it?

@HansMuller HansMuller requested a review from dkwingsmt August 11, 2021 15:43
@royarg02

Copy link
Copy Markdown
Contributor

If this is merged, we could do away with Chip.useDeleteButtonTooltip added in #68237 (I happen to know this one since I authored it).

@dkwingsmt

Copy link
Copy Markdown
Contributor

@bambinoua Can you keep this PR updated?

Add additional unit tests from line 1501 to 1530
@bambinoua

Copy link
Copy Markdown
Contributor Author

The change looks ok. Can you add a unit test so that someone doesn't accidentally undo it?

@dkwingsmt I've added tests but I did not do them ever before. Please check I created acceptable ones.

Remove some errors
Try to fix trailing spaces.
Add const constructors
Fix const constructor
@bambinoua

Copy link
Copy Markdown
Contributor Author

I do not know why some checks were not successful

@dkwingsmt dkwingsmt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dkwingsmt

Copy link
Copy Markdown
Contributor

If this is merged, we could do away with Chip.useDeleteButtonTooltip added in #68237 (I happen to know this one since I authored it).

That's a very reasonable idea. Be aware that the change might be breaking or at least need a migration guide.

@fluttergithubbot fluttergithubbot merged commit 7736b9e into flutter:master Sep 10, 2021
github-merge-queue Bot pushed a commit that referenced this pull request Feb 21, 2026
Regressed when migrating to `RawTooltip`. 

The unit tests added in #87638 to
prevent this from happening were faulty, I've updated them to reflect
this feature.

Fixes [[flutter 3.41.x] NavigationDestination shows empty
tooltip](#182495)
ahmedsameha1 pushed a commit to ahmedsameha1/flutter that referenced this pull request Feb 27, 2026
…2524)

Regressed when migrating to `RawTooltip`. 

The unit tests added in flutter#87638 to
prevent this from happening were faulty, I've updated them to reflect
this feature.

Fixes [[flutter 3.41.x] NavigationDestination shows empty
tooltip](flutter#182495)
mboetger pushed a commit to mboetger/flutter that referenced this pull request Mar 26, 2026
…2524)

Regressed when migrating to `RawTooltip`. 

The unit tests added in flutter#87638 to
prevent this from happening were faulty, I've updated them to reflect
this feature.

Fixes [[flutter 3.41.x] NavigationDestination shows empty
tooltip](flutter#182495)
chunhtai pushed a commit to chunhtai/packages that referenced this pull request Jun 12, 2026
Regressed when migrating to `RawTooltip`. 

The unit tests added in flutter/flutter#87638 to
prevent this from happening were faulty, I've updated them to reflect
this feature.

Fixes [[flutter 3.41.x] NavigationDestination shows empty
tooltip](flutter/flutter#182495)
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.

4 participants