Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
13885e7d
Unverified
Commit
13885e7d
authored
Aug 31, 2021
by
creativecreatorormaybenot
Committed by
GitHub
Aug 31, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix text field naming (#89117)
parent
0d88f605
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
73 deletions
+73
-73
search_field.dart
packages/flutter/lib/src/cupertino/search_field.dart
+2
-2
text_selection.dart
packages/flutter/lib/src/widgets/text_selection.dart
+7
-7
text_field_test.dart
packages/flutter/test/cupertino/text_field_test.dart
+64
-64
No files found.
packages/flutter/lib/src/cupertino/search_field.dart
View file @
13885e7d
...
@@ -97,7 +97,7 @@ class CupertinoSearchTextField extends StatefulWidget {
...
@@ -97,7 +97,7 @@ class CupertinoSearchTextField extends StatefulWidget {
// TODO(DanielEdrisian): Localize the 'Search' placeholder.
// TODO(DanielEdrisian): Localize the 'Search' placeholder.
///
///
/// The [style] and [placeholderStyle] properties allow changing the style of
/// 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 the gray [CupertinoColors.secondaryLabel] iOS color.
///
///
/// To set the text field's background color and border radius, pass a
/// To set the text field's background color and border radius, pass a
...
@@ -199,7 +199,7 @@ class CupertinoSearchTextField extends StatefulWidget {
...
@@ -199,7 +199,7 @@ class CupertinoSearchTextField extends StatefulWidget {
/// Defaults to 'Search' localized in each supported language.
/// Defaults to 'Search' localized in each supported language.
final
String
?
placeholder
;
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.
/// Defaults to the gray [CupertinoColors.secondaryLabel] iOS color.
final
TextStyle
?
placeholderStyle
;
final
TextStyle
?
placeholderStyle
;
...
...
packages/flutter/lib/src/widgets/text_selection.dart
View file @
13885e7d
...
@@ -871,27 +871,27 @@ class _TextSelectionHandleOverlayState
...
@@ -871,27 +871,27 @@ class _TextSelectionHandleOverlayState
/// Delegate interface for the [TextSelectionGestureDetectorBuilder].
/// 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
/// [EditableText], that use a [TextSelectionGestureDetectorBuilder] to build a
/// [TextSelectionGestureDetector] for their [EditableText]. The delegate provides
/// [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
/// Based on these information, the builder adds the correct gesture handlers
/// to the gesture detector.
/// to the gesture detector.
///
///
/// See also:
/// 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
/// * [CupertinoTextField], which implements this delegate for the Cupertino
/// textfield.
/// text
field.
abstract
class
TextSelectionGestureDetectorBuilderDelegate
{
abstract
class
TextSelectionGestureDetectorBuilderDelegate
{
/// [GlobalKey] to the [EditableText] for which the
/// [GlobalKey] to the [EditableText] for which the
/// [TextSelectionGestureDetectorBuilder] will build a [TextSelectionGestureDetector].
/// [TextSelectionGestureDetectorBuilder] will build a [TextSelectionGestureDetector].
GlobalKey
<
EditableTextState
>
get
editableTextKey
;
GlobalKey
<
EditableTextState
>
get
editableTextKey
;
/// Whether the textfield should respond to force presses.
/// Whether the text
field should respond to force presses.
bool
get
forcePressEnabled
;
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
;
bool
get
selectionEnabled
;
}
}
...
@@ -924,7 +924,7 @@ class TextSelectionGestureDetectorBuilder {
...
@@ -924,7 +924,7 @@ class TextSelectionGestureDetectorBuilder {
/// The delegate for this [TextSelectionGestureDetectorBuilder].
/// The delegate for this [TextSelectionGestureDetectorBuilder].
///
///
/// The delegate provides the builder with information about what actions can
/// 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.
/// the correct gesture handlers to the gesture detector.
@protected
@protected
final
TextSelectionGestureDetectorBuilderDelegate
delegate
;
final
TextSelectionGestureDetectorBuilderDelegate
delegate
;
...
...
packages/flutter/test/cupertino/text_field_test.dart
View file @
13885e7d
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment