Steps to reproduce
use Tooltip with meesage instead of richMessage or set ignorePointer to true, after showing the tooltip, hover the tooltip, tooltip keeps visible on hover
Investigation:
before flutter 3.41.0:
IgnorePointer is outside the _ExclusiveMouseRegion
after flutter 3.41.0:
_ExclusiveMouseRegion is outside the IgnorePointer
Expected results
tooltip dissmissed on hover (flutter 3.38.x)
Actual results
tooltip keeps visible on hover (flutter 3.41.0)
Code sample
Code sample
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: .fromSeed(seedColor: Colors.deepPurple),
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Tooltip(
message: 'tooltip',
// or this
// ignorePointer: true,
// richMessage: TextSpan(text: 'tooltip'),
child: Icon(Icons.more_vert),
),
),
);
}
}
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
Flutter Doctor output
Doctor output
Steps to reproduce
use
Tooltipwithmeesageinstead ofrichMessageor setignorePointertotrue, after showing the tooltip, hover the tooltip, tooltip keeps visible on hoverInvestigation:
before flutter 3.41.0:
IgnorePointeris outside the_ExclusiveMouseRegionafter flutter 3.41.0:
_ExclusiveMouseRegionis outside theIgnorePointerExpected results
tooltip dissmissed on hover (flutter 3.38.x)
Actual results
tooltip keeps visible on hover (flutter 3.41.0)
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
no error logFlutter Doctor output
Doctor output
[Paste your output here]