fluent_ui icon indicating copy to clipboard operation
fluent_ui copied to clipboard

Add option to make tooltip not automatically go away when itself is hovered

Open damywise opened this issue 3 years ago • 2 comments

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

damywise avatar Jul 27 '22 11:07 damywise

Can you post here a reproducibe snippet of this issue?

bdlukaa avatar Aug 10 '22 21:08 bdlukaa

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,
          ),
        ),
      ),
    );
  }
}

damywise avatar Aug 11 '22 12:08 damywise