Repository navigation
Tooltips should have customizable constraints #163313
Description
Use case
When building desktop apps, using Tooltips with long messages is problematic, because there is no way to limit the width of the tooltip, which results in the message being drawn in a single, very long line. To read such a tooltip on my display, I have to physically turn my head left to right.
There is a Tooltip.height property, but with no matching width property. The height property is also somewhat misdocumented, because based on my observations of its behavior, it should be named minHeight, as it doesn't enforce the given height.
There is also a Tooltip.margin property, but while it's useful on mobile devices, it's pretty much useless on desktop, because the variation in display sizes is much larger than on mobile, making it impossible to pick a right value which will read well on all displays.
Proposal
We should simply replace the height parameter with a more flexible constraints parameter.
Activity
feat(Tooltip): replace the height parameter with constraints
feat(Tooltip): replace the height parameter with constraints
feat(Tooltip): replace the height parameter with constraints
feat(Tooltip): replace the height parameter with constraints (#163314)
github-actions commentedon Apr 1, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.feat(Tooltip): replace the height parameter with constraints (flutter…