-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
c: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: 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
I'm interested in sending analytics events when a user triggers a tooltip, but it looks like this isn't possible without a somewhat hacky workaround, like:
- Essentially reimplementing
Tooltipwith the callback functionality - Using a
Stackto overlay aGestureDetectoron top of the tooltip widget - Adding a new
GestureDetectoras the immediate child of theTooltip-- this seems like a hacky solution
Proposal
It seems Tooltip should offer an onTriggered void callback that gets invoked when the user activates it.
Metadata
Metadata
Labels
c: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: 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.
Type
Projects
Status
Done (PR merged)