You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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:
The text was updated successfully, but these errors were encountered: