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

Handling Tooltip Display Issues in Flutter Desktop App #120

Open
ananya-pathak-wdc opened this issue Sep 3, 2024 · 1 comment
Open

Handling Tooltip Display Issues in Flutter Desktop App #120

ananya-pathak-wdc opened this issue Sep 3, 2024 · 1 comment
Assignees

Comments

@ananya-pathak-wdc
Copy link

Describe the bug

I am working on a desktop application and using the super_tooltip package to create custom tooltips with arrows. The tooltip direction is set to down by default, and I'm handling the display and hide functionality using MouseRegion.

However, when I hover over a widget that is partially hidden below the screen, the app freezes, and I receive the following error logs in the console:

Another exception was thrown: Cannot hit test a render box that has never been laid out. Another exception was thrown: 'package:flutter/src/rendering/mouse_tracker.dart': Failed assertion: line 200 pos 12: '!_debugDuringDeviceUpdate': is not true.

Is there a way to automatically invert the tooltip direction if there isn't enough space to display it? Or can we have a condition to prevent the tooltip from being displayed in such scenarios to avoid the app freeze?

Desktop:

  • OS: MacOS Sonoma
  • Version: 14.5
@ananya-pathak-wdc ananya-pathak-wdc changed the title Changing the tooltip direction if space not available for in app screen Handling Tooltip Display Issues in Flutter Desktop App Sep 3, 2024
@bensonarafat bensonarafat self-assigned this Sep 3, 2024
@ananya-pathak-wdc
Copy link
Author

@bensonarafat Can you please suggest some fix for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants