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
9b6229ab
Unverified
Commit
9b6229ab
authored
Dec 18, 2018
by
Hans Muller
Committed by
GitHub
Dec 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TextField.onChanged() doc update (#25473)
parent
cbb168e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
text_field.dart
packages/flutter/lib/src/material/text_field.dart
+7
-0
editable_text.dart
packages/flutter/lib/src/widgets/editable_text.dart
+18
-1
No files found.
packages/flutter/lib/src/material/text_field.dart
View file @
9b6229ab
...
...
@@ -297,6 +297,13 @@ class TextField extends StatefulWidget {
final
bool
maxLengthEnforced
;
/// {@macro flutter.widgets.editableText.onChanged}
///
/// See also:
///
/// * [inputFormatters], which are called before [onChanged]
/// runs and can validate and change ("format") the input value.
/// * [onEditingComplete], [onSubmitted], [onSelectionChanged]:
/// which are more specialized input change notifications.
final
ValueChanged
<
String
>
onChanged
;
/// {@macro flutter.widgets.editableText.onEditingComplete}
...
...
packages/flutter/lib/src/widgets/editable_text.dart
View file @
9b6229ab
...
...
@@ -374,8 +374,25 @@ class EditableText extends StatefulWidget {
final
TextInputAction
textInputAction
;
/// {@template flutter.widgets.editableText.onChanged}
/// Called when the text being edited changes.
/// Called when the user initiates a change to the TextField's
/// value: when they have inserted or deleted text.
///
/// This callback does run not when the TextField's text is changed
/// programmatically, via the TextField's [controller]. Typically it
/// isn't necessary to be notified of such changes, since they're
/// initiated by the app itself.
///
/// To be notified of all changes to the TextField's text, cursor,
/// and selection, one can add a listener to its [controller] with
/// [TextEditingController.addListener].
/// {@endtemplate}
///
/// See also:
///
/// * [inputFormatters], which are called before [onChanged]
/// runs and can validate and change ("format") the input value.
/// * [onEditingComplete], [onSubmitted], [onSelectionChanged]:
/// which are more specialized input change notifications.
final
ValueChanged
<
String
>
onChanged
;
/// {@template flutter.widgets.editableText.onEditingComplete}
...
...
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