Add more doc pointing to the EditableText's rudimentary nature around gesture handling (#28955)

This commit is contained in:
xster
2019-03-07 13:25:32 -08:00
committed by GitHub
parent da8b340c4a
commit acf51d8e36

View File

@@ -235,6 +235,16 @@ class TextEditingController extends ValueNotifier<TextEditingValue> {
/// is a full-featured, material-design text input field with placeholder text,
/// labels, and [Form] integration.
///
/// ## Gesture Events Handling
///
/// This widget provides rudimentary, platform-agnostic gesture handling for
/// user actions such as tapping, long-pressing and scrolling when
/// [rendererIgnoresPointer] is false (false by default). To tightly conform
/// to the platform behavior with respect to input gestures in text fields, use
/// [TextField] or [CupertinoTextField]. For custom selection behavior, call
/// methods such as [RenderEditable.selectPosition],
/// [RenderEditable.selectWord], etc. programmatically.
///
/// See also:
///
/// * [TextField], which is a full-featured, material-design text input field
@@ -478,6 +488,19 @@ class EditableText extends StatefulWidget {
final Color selectionColor;
/// Optional delegate for building the text selection handles and toolbar.
///
/// The [EditableText] widget used on its own will not trigger the display
/// of the selection toolbar by itself. The toolbar is shown by calling
/// [EditableTextState.showToolbar] in response to an appropriate user event.
///
/// See also:
///
/// * [CupertinoTextField], which wraps an [EditableText] and which shows the
/// selection toolbar upon user events that are appropriate on the iOS
/// platform.
/// * [TextField], a Material Design themed wrapper of [EditableText], which
/// shows the selection toolbar upon appropriate user events based on the
/// user's platform set in [ThemeData.platform].
final TextSelectionControls selectionControls;
/// {@template flutter.widgets.editableText.keyboardType}