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
Describe the bug
On desktop, hover status is used for displaying Tooltip. However, issue arises when the specified waitDuration is set to Duration.zero and when multiple widgets with their own tooltips are hovered fast.
To Reproduce
Steps to reproduce the behavior:
Set waitDuration to Duration(milliseconds: 50) or below (The lower, the faster you can reproduce the issue).
Create a list of widgets wrapped in Tooltip widget
Hover continuously and fast between those widgets with tooltips
See error
Expected behavior
By design choice and better user experience, waitDuration should be set to where the tooltip would not popup instantly however the issue should still be addressed for those who decide to use a lower duration and is expected without encountering any error.
Additional context
Sample code
TooltipTheme(
data:constTooltipThemeData(
waitDuration:Duration.zero,
),
child:Row(
children: [
for (final color in material.Colors.primaries)
Tooltip(
message: color.toString(),
child:Container(
color: color,
height:25,
width:25,
),
),
],
),
),
Debug
══╡ EXCEPTION CAUGHT BY ANIMATION LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown while notifying status listeners for AnimationController:
'package:flutter/src/widgets/overlay.dart': Failed assertion: line 162 pos 12: '_overlay != null':
is not true.
When the exception was thrown, this was the stack:
#2 OverlayEntry.remove (package:flutter/src/widgets/overlay.dart:162:12)
#3 _TooltipState._removeEntry (package:fluent_ui/src/controls/surfaces/tooltip.dart:395:15)
#4 _TooltipState._handleStatusChanged (package:fluent_ui/src/controls/surfaces/tooltip.dart:229:7)
#5 AnimationLocalStatusListenersMixin.notifyStatusListeners (package:flutter/src/animation/listener_helpers.dart:240:19)
#6 AnimationController._checkStatusChanged (package:flutter/src/animation/animation_controller.dart:815:7)
#7 AnimationController.value= (package:flutter/src/animation/animation_controller.dart:364:5)
#8 AnimationController.forward (package:flutter/src/animation/animation_controller.dart:459:7)
#9 _TooltipState._revealTooltip (package:fluent_ui/src/controls/surfaces/tooltip.dart:292:17)
#10 Tooltip._revealLastTooltip (package:fluent_ui/src/controls/surfaces/tooltip.dart:119:28)
#11 _TooltipState._removeEntry (package:fluent_ui/src/controls/surfaces/tooltip.dart:400:15)
#12 _TooltipState._handleStatusChanged (package:fluent_ui/src/controls/surfaces/tooltip.dart:229:7)
#13 AnimationLocalStatusListenersMixin.notifyStatusListeners (package:flutter/src/animation/listener_helpers.dart:240:19)
#14 AnimationController._checkStatusChanged (package:flutter/src/animation/animation_controller.dart:815:7)
#15 AnimationController.value= (package:flutter/src/animation/animation_controller.dart:364:5)
#16 AnimationController.forward (package:flutter/src/animation/animation_controller.dart:459:7)
#17 _TooltipState._revealTooltip (package:fluent_ui/src/controls/surfaces/tooltip.dart:292:17)
#18 _TooltipState.ensureTooltipVisible (package:fluent_ui/src/controls/surfaces/tooltip.dart:308:7)
#22 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)
(elided 5 frames from class _AssertionError, class _Timer, and dart:async-patch)
The AnimationController notifying status listeners was:
AnimationController#f0ba4(⏮ 0.000; paused)
The text was updated successfully, but these errors were encountered:
harlanx
changed the title
🐛 Hovering on multiple tool tips fast throws AnimationController error
🐛 Hovering fast on multiple Tooltips throws AnimationController error
Jul 30, 2023
Describe the bug
On desktop, hover status is used for displaying
Tooltip
. However, issue arises when the specifiedwaitDuration
is set to Duration.zero and when multiple widgets with their own tooltips are hovered fast.To Reproduce
Steps to reproduce the behavior:
waitDuration
toDuration(milliseconds: 50)
or below (The lower, the faster you can reproduce the issue).Tooltip
widgetExpected behavior
By design choice and better user experience,
waitDuration
should be set to where the tooltip would not popup instantly however the issue should still be addressed for those who decide to use a lower duration and is expected without encountering any error.Additional context
Sample code
Debug
The text was updated successfully, but these errors were encountered: