Don't display empty tooltips (Tooltips with empty message property)#87638
Conversation
If tooltip message is empty than no need to display empty dark rectangle.
|
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. |
Remove trailingg spaces
|
The change looks ok. Can you add a unit test so that someone doesn't accidentally undo it? |
|
If this is merged, we could do away with |
|
@bambinoua Can you keep this PR updated? |
Add additional unit tests from line 1501 to 1530
@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
|
I do not know why some checks were not successful |
That's a very reasonable idea. Be aware that the change might be breaking or at least need a migration guide. |
…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)
…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)
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)
If tooltip message is empty than no need to display empty dark rectangle.