You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| selectionColor | Color of selection | Theme.of(context).textSelectionColor |
208
-
| dragStartBehavior | DragStartBehavior for text selection | DragStartBehavior.start |
209
-
| textSelectionControls | An interface for building the selection UI, to be provided by the implementor of the toolbar widget or handle widget | extendedMaterialTextSelectionControls/extendedCupertinoTextSelectionControls |
203
+
It works with `SelectionArea` now.
204
+
210
205
211
206
### TextSelectionControls
212
207
@@ -408,56 +403,6 @@ class CommonSelectionArea extends StatelessWidget {
408
403
409
404
```
410
405
411
-
### Control ToolBar Handle
412
-
413
-
contain your page into ExtendedTextSelectionPointerHandler, so you can control toolbar and handle.
414
-
415
-
#### Default Behavior
416
-
417
-
set your page as child of ExtendedTextSelectionPointerHandler
418
-
419
-
```dart
420
-
return ExtendedTextSelectionPointerHandler(
421
-
//default behavior
422
-
child: result,
423
-
);
424
-
```
425
-
426
-
- tap region outside of extended text, hide toolbar and handle
427
-
- scorll, hide toolbar and handle
428
-
429
-
#### Custom Behavior
430
-
431
-
get selectionStates(ExtendedTextSelectionState) by builder call back, and handle by your self.
0 commit comments