-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
a: desktopRunning on desktopRunning on desktopa: fidelityMatching the OEM platforms betterMatching the OEM platforms betterc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
Use case
From the material spec it is explicitly stated that :
“A tooltip is displayed upon tapping and holding a screen element or component (on mobile) or hovering over it (desktop).”.
(https://material.io/components/tooltips#behavior)
The second ‘or’ is important and IMHO could be understood as “on Desktop, the tooltip should only be shown when hovering”. It’s how it works on native Desktop.
A video showing the counter app on Linux :
- First time the Tooltip is shown when the mouse hovered the FAB.
- Second time the tooltip is shown when doing a long press on the FAB.
TooltipOnLongPress.mp4
Proposal
Introduce a way to have Tooltip showing only on hover on Desktop.
As it might be a breaking change, one solution could be to add another TooltipTriggerMode (for instance, TooltipTriggerMode.onHover or TooltipTriggerMode.onHoverOnly).
Metadata
Metadata
Assignees
Labels
a: desktopRunning on desktopRunning on desktopa: fidelityMatching the OEM platforms betterMatching the OEM platforms betterc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.