Skip to content

Commit 1b800fd

Browse files
Remove Tooltip mouse tracker listener & update hovering/MouseRegion logic & animation (#119199)
Fixes flutter/flutter#117627 ### Behavior changes: 1. If fade in/fade out animation is already in progress, hiding/showing the tooltip will immediately take effect without waiting for `waitDuration`. 2. A PointerDownEvent that doesn't become a part of a "trigger" gesture dismisses the tooltip, even for hovered ones. 3. The OverlayEntry is now updated only when the previous tooltip was completely dismissed. This can be fixed by OverlayPortal but I'm not sure what the correct behavior is.
1 parent 9da1d98 commit 1b800fd

7 files changed

Lines changed: 587 additions & 313 deletions

File tree

‎examples/api/test/material/tooltip/tooltip.3_test.dart‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ void main() {
2020
await tester.tap(find.byType(FloatingActionButton));
2121
await tester.pump(const Duration(milliseconds: 10));
2222
expect(find.text(tooltipText), findsOneWidget);
23-
// Wait for the tooltip to disappear.
23+
// Tap on the tooltip and wait for the tooltip to disappear.
24+
await tester.tap(find.byTooltip(tooltipText));
2425
await tester.pump(const Duration(seconds: 1));
2526
expect(find.text(tooltipText), findsNothing);
2627
});

0 commit comments

Comments
 (0)