Unverified Commit 13885e7d authored by creativecreatorormaybenot's avatar creativecreatorormaybenot Committed by GitHub

Fix text field naming (#89117)

parent 0d88f605
......@@ -97,7 +97,7 @@ class CupertinoSearchTextField extends StatefulWidget {
// TODO(DanielEdrisian): Localize the 'Search' placeholder.
///
/// The [style] and [placeholderStyle] properties allow changing the style of
/// the text and placeholder of the textfield. [placeholderStyle] defaults
/// the text and placeholder of the text field. [placeholderStyle] defaults
/// to the gray [CupertinoColors.secondaryLabel] iOS color.
///
/// To set the text field's background color and border radius, pass a
......@@ -199,7 +199,7 @@ class CupertinoSearchTextField extends StatefulWidget {
/// Defaults to 'Search' localized in each supported language.
final String? placeholder;
/// Sets the style of the placeholder of the textfield.
/// Sets the style of the placeholder of the text field.
///
/// Defaults to the gray [CupertinoColors.secondaryLabel] iOS color.
final TextStyle? placeholderStyle;
......
......@@ -871,27 +871,27 @@ class _TextSelectionHandleOverlayState
/// Delegate interface for the [TextSelectionGestureDetectorBuilder].
///
/// The interface is usually implemented by textfield implementations wrapping
/// The interface is usually implemented by text field implementations wrapping
/// [EditableText], that use a [TextSelectionGestureDetectorBuilder] to build a
/// [TextSelectionGestureDetector] for their [EditableText]. The delegate provides
/// the builder with information about the current state of the textfield.
/// the builder with information about the current state of the text field.
/// Based on these information, the builder adds the correct gesture handlers
/// to the gesture detector.
///
/// See also:
///
/// * [TextField], which implements this delegate for the Material textfield.
/// * [TextField], which implements this delegate for the Material text field.
/// * [CupertinoTextField], which implements this delegate for the Cupertino
/// textfield.
/// text field.
abstract class TextSelectionGestureDetectorBuilderDelegate {
/// [GlobalKey] to the [EditableText] for which the
/// [TextSelectionGestureDetectorBuilder] will build a [TextSelectionGestureDetector].
GlobalKey<EditableTextState> get editableTextKey;
/// Whether the textfield should respond to force presses.
/// Whether the text field should respond to force presses.
bool get forcePressEnabled;
/// Whether the user may select text in the textfield.
/// Whether the user may select text in the text field.
bool get selectionEnabled;
}
......@@ -924,7 +924,7 @@ class TextSelectionGestureDetectorBuilder {
/// The delegate for this [TextSelectionGestureDetectorBuilder].
///
/// The delegate provides the builder with information about what actions can
/// currently be performed on the textfield. Based on this, the builder adds
/// currently be performed on the text field. Based on this, the builder adds
/// the correct gesture handlers to the gesture detector.
@protected
final TextSelectionGestureDetectorBuilderDelegate delegate;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment