Skip to content

Add the ability to disable ContextMenu in TextFields #79796

@esDotDev

Description

@esDotDev

In the case where we have implemented a consistent ContextMenu theme across the entire app, we would like to disable the built-in context menu and use our own instead. Currently the TextField widget swallows the RightClick event, so there is no way for us to override it. See this comment for more specifics: #74255 (comment)

@justinmc

Metadata

Metadata

Assignees

Labels

a: text inputEntering text in a text field or keyboard related problemsc: proposalA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions