Repository navigation
SelectionArea supported gestures should have feature parity with TextSelectionGestureDetector #129583
Copy link
Copy link
Open
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: gesturesflutter/packages/flutter/gestures repository.flutter/packages/flutter/gestures repository.f: selectionSelectableRegion, SelectionArea, SelectionContainer, Selectable, and related APIsSelectableRegion, SelectionArea, SelectionContainer, Selectable, and related APIsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Description
Activity
- changed the title
[-]`SelectionArea` should have feature parity with `TextSelectionGestureDetector`[/-][+]`SelectionArea` supported gestures should have feature parity with `TextSelectionGestureDetector`[/+]on Jun 26, 2023 - addedin triagePresently being triaged by the triage teamPresently being triaged by the triage teama: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.f: gesturesflutter/packages/flutter/gestures repository.flutter/packages/flutter/gestures repository.c: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: selectionSelectableRegion, SelectionArea, SelectionContainer, Selectable, and related APIsSelectableRegion, SelectionArea, SelectionContainer, Selectable, and related APIsand removedin triagePresently being triaged by the triage teamPresently being triaged by the triage team
on Jun 27, 2023 - addedP3Issues that are less important to the Flutter projectIssues that are less important to the Flutter project
on Jun 27, 2023 - addedteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
on Jul 8, 2023 - addedP1High-priority issues at the top of the work listHigh-priority issues at the top of the work listand removedP3Issues that are less important to the Flutter projectIssues that are less important to the Flutter project
on Aug 15, 2023 Given that there are so many unimplemented gestures on SelectionArea, is work better spent allowing it to share this code with EditableText instead of reimplementing these? Or is it not so simple?
4 remaining items
- added a commit that references this issue
on Sep 28, 2023 - added a commit that references this issue
on Oct 10, 2023 With iOS, Is it possible to combine gestures with SelectionArea, such as long press to select a word, tap to select a sentence/paragraph etc.
- added a commit that references this issue
on Jun 21, 2024 - added a commit that references this issue
on Jun 26, 2024 - added a commit that references this issue
on Jul 31, 2024 - added a commit that references this issue
on Aug 7, 2024 - added a commit that references this issue
on Sep 2, 2024 - moved this from Incoming Issues to In progress in SelectableRegion Improvements
on Mar 2, 2026 - moved this from In progress to Incoming Issues in SelectableRegion Improvements
on Mar 2, 2026 - moved this from Incoming Issues to Prioritized in SelectableRegion Improvements
on Mar 2, 2026 - moved this from Updated to Needs Update in SelectableRegion Improvements
on Mar 5, 2026
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: gesturesflutter/packages/flutter/gestures repository.flutter/packages/flutter/gestures repository.f: selectionSelectableRegion, SelectionArea, SelectionContainer, Selectable, and related APIsSelectableRegion, SelectionArea, SelectionContainer, Selectable, and related APIsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Type
Projects
- StatusShow more project fieldsNeeds Update
SelectionAreashould have the same supported gestures asTextSelectionGestureDetector. This is a pre-requisite for migratingTextFieldfromTextSelectionGestureDetectortoSelectionArea. Some of these gestures are also needed for re-implementingSelectableTextwithSelectionArea#104547.Platform Common:
Platform Mobile:
Platform Desktop:
Platform Android:
Platform iOS:
Platform Linux:
Other details:
On a windows touch screen device the context menu does not show up until the long press ends in editable/static text contexts. On a long press drag it collapses the cursor at the position when the long press ends (editable text). On a long press hold it selects the word on drag start as well as popping up the selection handles (static text). On a long press drag nothing happens (the word at the long press start is selected) (static text).
Normal touch drag does nothing on static text. Consecutive taps also does nothing on static text / consecutive tap + drag.
On a normal touch drag it acts as a mouse drag (editable text). On Editable text consecutive tap / consecutive tap + drag works.
on tap down/tap up works similar to android for editable text, the selection is set on tap up.