Skip to content

Documentation on SelectableText should mention SelectionArea  #119911

@nilsreichardt

Description

@nilsreichardt

image

When you google "flutter text selection" the first result is the documentation of the SelectableText. When you are new to Flutter, you think that this is the way to make a text selectable. However, since a few months there is also a way to make multiple text widgets selectable (SelectionArea, see #95226). The documentation of SelectableText doesn't mention in any line of the existence of the SelectionArea widget, see https://api.flutter.dev/flutter/material/SelectableText-class.html)

I think it would be a good idea to also mention SelectionArea, when you want to add a selection for more than only one text widget. Therefore, new Flutter might explore this widget and are going to read documentation of this widget.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listd: api docsIssues with https://api.flutter.dev/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 versionteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions