Skip to content

Commit 13885e7

Browse files
Fix text field naming (flutter#89117)
1 parent 0d88f60 commit 13885e7

File tree

3 files changed

+73
-73
lines changed

3 files changed

+73
-73
lines changed

packages/flutter/lib/src/cupertino/search_field.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class CupertinoSearchTextField extends StatefulWidget {
9797
// TODO(DanielEdrisian): Localize the 'Search' placeholder.
9898
///
9999
/// The [style] and [placeholderStyle] properties allow changing the style of
100-
/// the text and placeholder of the textfield. [placeholderStyle] defaults
100+
/// the text and placeholder of the text field. [placeholderStyle] defaults
101101
/// to the gray [CupertinoColors.secondaryLabel] iOS color.
102102
///
103103
/// To set the text field's background color and border radius, pass a
@@ -199,7 +199,7 @@ class CupertinoSearchTextField extends StatefulWidget {
199199
/// Defaults to 'Search' localized in each supported language.
200200
final String? placeholder;
201201

202-
/// Sets the style of the placeholder of the textfield.
202+
/// Sets the style of the placeholder of the text field.
203203
///
204204
/// Defaults to the gray [CupertinoColors.secondaryLabel] iOS color.
205205
final TextStyle? placeholderStyle;

packages/flutter/lib/src/widgets/text_selection.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -871,27 +871,27 @@ class _TextSelectionHandleOverlayState
871871

872872
/// Delegate interface for the [TextSelectionGestureDetectorBuilder].
873873
///
874-
/// The interface is usually implemented by textfield implementations wrapping
874+
/// The interface is usually implemented by text field implementations wrapping
875875
/// [EditableText], that use a [TextSelectionGestureDetectorBuilder] to build a
876876
/// [TextSelectionGestureDetector] for their [EditableText]. The delegate provides
877-
/// the builder with information about the current state of the textfield.
877+
/// the builder with information about the current state of the text field.
878878
/// Based on these information, the builder adds the correct gesture handlers
879879
/// to the gesture detector.
880880
///
881881
/// See also:
882882
///
883-
/// * [TextField], which implements this delegate for the Material textfield.
883+
/// * [TextField], which implements this delegate for the Material text field.
884884
/// * [CupertinoTextField], which implements this delegate for the Cupertino
885-
/// textfield.
885+
/// text field.
886886
abstract class TextSelectionGestureDetectorBuilderDelegate {
887887
/// [GlobalKey] to the [EditableText] for which the
888888
/// [TextSelectionGestureDetectorBuilder] will build a [TextSelectionGestureDetector].
889889
GlobalKey<EditableTextState> get editableTextKey;
890890

891-
/// Whether the textfield should respond to force presses.
891+
/// Whether the text field should respond to force presses.
892892
bool get forcePressEnabled;
893893

894-
/// Whether the user may select text in the textfield.
894+
/// Whether the user may select text in the text field.
895895
bool get selectionEnabled;
896896
}
897897

@@ -924,7 +924,7 @@ class TextSelectionGestureDetectorBuilder {
924924
/// The delegate for this [TextSelectionGestureDetectorBuilder].
925925
///
926926
/// The delegate provides the builder with information about what actions can
927-
/// currently be performed on the textfield. Based on this, the builder adds
927+
/// currently be performed on the text field. Based on this, the builder adds
928928
/// the correct gesture handlers to the gesture detector.
929929
@protected
930930
final TextSelectionGestureDetectorBuilderDelegate delegate;

0 commit comments

Comments
 (0)