Skip to content

Remove TextSelectionDelegate from SelectableRegionState #111213

@justinmc

Description

@justinmc

SelectableRegionState currently mixes in TextSelectionDelegate in order to receive text selection toolbar functionality, however, this functionality is being remove from TextSelectionDelegate in #107193. After the deprecations in that PR are removed, it should be possible to remove TextSelectionDelegate from SelectableRegionState altogether.

Why remove TextSelectionDelegate?

TextSelectionDelegate provides functionality that is related to editing text and which SelectableRegion doesn't use (example). Text selection should be separate from text editing.

CC @chunhtai

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsc: proposalA detailed proposal for a change to Flutterframeworkflutter/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