Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip getTransformTo assertion failed when in OverlayPortal.targetsRootOverlay #148410

Closed
Andrflor opened this issue May 15, 2024 · 2 comments
Closed
Labels
in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds

Comments

@Andrflor
Copy link

Andrflor commented May 15, 2024

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

@danagbemava-nc danagbemava-nc added the in triage Presently being triaged by the triage team label May 15, 2024
@danagbemava-nc
Copy link
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

@danagbemava-nc danagbemava-nc added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 15, 2024
auto-submit bot pushed a commit that referenced this issue May 22, 2024
… in the same tree (#148897)

This is #130192 but without the additional parameter.

Fixes #146764, #148410
victorsanni pushed a commit to victorsanni/flutter that referenced this issue May 31, 2024
Copy link

github-actions bot commented Jun 6, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds
Projects
None yet
Development

No branches or pull requests

3 participants