Skip to content

[SelectionArea] add the ability to get the currently selected text #108231

@CaptainDario

Description

@CaptainDario

I am currently using the new SelectionArea-widget and it is working great! However, it would be nice to be able to get the currently selected text which currently does not seem to be possible.
For example one could show a popup with word translations on selection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: text inputEntering text in a text field or keyboard related problemsc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.f: selectionSelectableRegion, SelectionArea, SelectionContainer, Selectable, and related APIsframeworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions