fluent_ui
fluent_ui copied to clipboard
Add option to make tooltip not automatically go away when itself is hovered
Is your feature request related to a problem? Please describe. The tooltip automatically goes away when hovered, and then immediately shows itself again, infinitely.
Describe the solution you'd like Add an option to Tooltip, like so:
Tooltip(
...
hideOnHover: false,
...
)
Describe alternatives you've considered None
Additional context Record of current state: (tooltip is at top right)
https://user-images.githubusercontent.com/25608913/181230152-e5267256-671e-4dfe-9b8f-ff18c639eb09.mp4
Can you post here a reproducibe snippet of this issue?
Here you go
import 'package:fluent_ui/fluent_ui.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return FluentApp(
title: 'Flutter Demo',
home: Align(
child: Tooltip(
style: const TooltipThemeData(
verticalOffset: -1,
),
message: "Issue #443",
child: Container(
color: Colors.red,
width: 32,
height: 32,
),
),
),
);
}
}