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
0a06644c
Unverified
Commit
0a06644c
authored
Jul 06, 2022
by
LongCatIsLooong
Committed by
GitHub
Jul 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify that inputFormatters don't run on programmatical changes (#106904)
parent
78b38b77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
text_style.dart
packages/flutter/lib/src/painting/text_style.dart
+1
-1
editable_text.dart
packages/flutter/lib/src/widgets/editable_text.dart
+12
-3
No files found.
packages/flutter/lib/src/painting/text_style.dart
View file @
0a06644c
...
@@ -504,7 +504,7 @@ class TextStyle with Diagnosticable {
...
@@ -504,7 +504,7 @@ class TextStyle with Diagnosticable {
/// style (e.g., in a [TextSpan] tree).
/// style (e.g., in a [TextSpan] tree).
///
///
/// If this is false, properties that don't have explicit values will revert
/// If this is false, properties that don't have explicit values will revert
/// to the defaults: white in color, a font size of 1
0
pixels, in a sans-serif
/// to the defaults: white in color, a font size of 1
4
pixels, in a sans-serif
/// font face.
/// font face.
final
bool
inherit
;
final
bool
inherit
;
...
...
packages/flutter/lib/src/widgets/editable_text.dart
View file @
0a06644c
...
@@ -1070,6 +1070,8 @@ class EditableText extends StatefulWidget {
...
@@ -1070,6 +1070,8 @@ class EditableText extends StatefulWidget {
/// runs and can validate and change ("format") the input value.
/// runs and can validate and change ("format") the input value.
/// * [onEditingComplete], [onSubmitted], [onSelectionChanged]:
/// * [onEditingComplete], [onSubmitted], [onSelectionChanged]:
/// which are more specialized input change notifications.
/// which are more specialized input change notifications.
/// * [TextEditingController], which implements the [Listenable] interface
/// and notifies its listeners on [TextEditingValue] changes.
final
ValueChanged
<
String
>?
onChanged
;
final
ValueChanged
<
String
>?
onChanged
;
/// {@template flutter.widgets.editableText.onEditingComplete}
/// {@template flutter.widgets.editableText.onEditingComplete}
...
@@ -1133,9 +1135,16 @@ class EditableText extends StatefulWidget {
...
@@ -1133,9 +1135,16 @@ class EditableText extends StatefulWidget {
/// {@template flutter.widgets.editableText.inputFormatters}
/// {@template flutter.widgets.editableText.inputFormatters}
/// Optional input validation and formatting overrides.
/// Optional input validation and formatting overrides.
///
///
/// Formatters are run in the provided order when the text input changes. When
/// Formatters are run in the provided order when the user changes the text
/// this parameter changes, the new formatters will not be applied until the
/// this widget contains. When this parameter changes, the new formatters will
/// next time the user inserts or deletes text.
/// not be applied until the next time the user inserts or deletes text.
/// Similar to the [onChanged] callback, formatters don't run when the text is
/// changed programmatically via [controller].
///
/// See also:
///
/// * [TextEditingController], which implements the [Listenable] interface
/// and notifies its listeners on [TextEditingValue] changes.
/// {@endtemplate}
/// {@endtemplate}
final
List
<
TextInputFormatter
>?
inputFormatters
;
final
List
<
TextInputFormatter
>?
inputFormatters
;
...
...
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