Skip to content

Tooltips should have customizable constraints #163313

Closed

Description

@kszczek

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

  1. added 3 commits that reference this issue on Feb 14, 2025
    61f1996
    e9327ea
    40ae181
  2. added
    in triagePresently being triaged by the triage team
    c: new featureNothing broken; request for a new capability
    frameworkflutter/packages/flutter repository. See also f: labels.
    p: material_uimaterial_ui package in flutter/packages
    c: proposalA detailed proposal for a change to Flutter
    team-designOwned by Design Languages team
    and removed
    in triagePresently being triaged by the triage team
    on Feb 17, 2025
  3. added
    P2Important issues not at the top of the work list
    triaged-designTriaged by Design Languages team
    on Feb 19, 2025
  4. added a commit that references this issue on Mar 17, 2025
    9d2b6da
  5. added
    r: fixedIssue is closed as already fixed in a newer version
    on Mar 18, 2025
  6. github-actions commented on Apr 1, 2025

    @github-actions

    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 -v and a minimal reproduction of the issue.

  7. locked as resolved and limited conversation to collaborators on Apr 1, 2025
  8. added a commit that references this issue on Aug 14, 2025
    6fd5a73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions