Skip to content

Tooltip getTransformTo assertion failed when in OverlayPortal.targetsRootOverlay #148410

Closed

Description

@Andrflor

Steps to reproduce

create a OverlayPortal.targetsRootOverlay widget with a Tooltip inside

Expected results

Tooltip should display on hover

Actual results

No tooltip assertion failed renderer.parent != null

_buildTooltipOverlay fails on
box.localToGlobal because
getTransformTo assetion
assert(renderer.parent != null) fails

Workaround
Add Overlay in the Tooltip hierarchy
Or use OverlayPortal instead of OverlayPortal.targetsRootOverlay

Code sample

Code sample
       OverlayPortal.targetsRootOverlay(
        controller: OverlayPortalController(),
        overlayChildBuilder: (_) => Tooltip(message: 'Some msg', child: anyChild),
        child: anyChildAgain,
        )

Screenshots or Video

No response

Logs

No response

Flutter Doctor output

NA

Activity

  1. danagbemava-nc commented on May 15, 2024

    @danagbemava-nc
    Member

    Hi @Andrflor,

    Please provide your flutter doctor -v and flutter run --verbose logs, and a minimal complete reproducible code sample along with steps to reproduce so that we can investigate this issue.

    Thank you

  2. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on May 15, 2024
  3. github-actions commented on Jun 6, 2024

    @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.

  4. locked as resolved and limited conversation to collaborators on Jun 6, 2024
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

    in triagePresently being triaged by the triage teamwaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions