Implement SelectionArea triple click gestures (#144563)
This change adds support for triple click to select a paragraph at the clicked position and triple click + drag to extend the selection paragraph-by-paragraph when using the SelectionArea widget. This PR also: * Makes `Text` widgets a `SelectionContainer` if a parent `SelectionRegistrar` exists. * Fixes issues with selectable ordering involving `WidgetSpan`s. Fixes: https://github.com/flutter/flutter/issues/104552
This commit is contained in:
@@ -185,6 +185,7 @@ class _RenderSelectableAdapter extends RenderProxyBox with Selectable, Selection
|
||||
_start = _end = null;
|
||||
case SelectionEventType.selectAll:
|
||||
case SelectionEventType.selectWord:
|
||||
case SelectionEventType.selectParagraph:
|
||||
_start = Offset.zero;
|
||||
_end = Offset.infinite;
|
||||
case SelectionEventType.granularlyExtendSelection:
|
||||
|
||||
Reference in New Issue
Block a user