Skip to content

TapRegion should detect right click or middle button click #136706

@anidotnet

Description

@anidotnet

Is there an existing issue for this?

Use case

I am currently having difficulties to detect if a mouse right click or mouse middle click has happened outside of a widget. This is really necessary to display a custom menus in a desktop application.

Currently, TapRegion widget only detects left mouse click for onTapInside and onTapOutside. Thus, there is no way currently to detect if a right click or middle click event has happened outside of the region of a widget. On the other-hand, GestureDetector can detect right click etc but no way to detect if the click has happened outside of the GestureDetector.

Proposal

It would be really nice to have TapRegion detect all kinds of mouse button click event.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: gesturesflutter/packages/flutter/gestures repository.f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions