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
8eb7e2a2
Unverified
Commit
8eb7e2a2
authored
Oct 07, 2021
by
Kate Lovett
Committed by
GitHub
Oct 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecated formatting classes (#90296)
parent
b6459f9b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
63 deletions
+0
-63
text_formatter.dart
packages/flutter/lib/src/services/text_formatter.dart
+0
-63
No files found.
packages/flutter/lib/src/services/text_formatter.dart
View file @
8eb7e2a2
...
@@ -408,69 +408,6 @@ class FilteringTextInputFormatter extends TextInputFormatter {
...
@@ -408,69 +408,6 @@ class FilteringTextInputFormatter extends TextInputFormatter {
static
final
TextInputFormatter
digitsOnly
=
FilteringTextInputFormatter
.
allow
(
RegExp
(
r'[0-9]'
));
static
final
TextInputFormatter
digitsOnly
=
FilteringTextInputFormatter
.
allow
(
RegExp
(
r'[0-9]'
));
}
}
/// Old name for [FilteringTextInputFormatter.deny].
@Deprecated
(
'Use FilteringTextInputFormatter.deny instead. '
'This feature was deprecated after v1.20.0-1.0.pre.'
,
)
class
BlacklistingTextInputFormatter
extends
FilteringTextInputFormatter
{
/// Old name for [FilteringTextInputFormatter.deny].
@Deprecated
(
'Use FilteringTextInputFormatter.deny instead. '
'This feature was deprecated after v1.20.0-1.0.pre.'
,
)
BlacklistingTextInputFormatter
(
Pattern
blacklistedPattern
,
{
String
replacementString
=
''
,
})
:
super
.
deny
(
blacklistedPattern
,
replacementString:
replacementString
);
/// Old name for [filterPattern].
@Deprecated
(
'Use filterPattern instead. '
'This feature was deprecated after v1.20.0-1.0.pre.'
,
)
Pattern
get
blacklistedPattern
=>
filterPattern
;
/// Old name for [FilteringTextInputFormatter.singleLineFormatter].
@Deprecated
(
'Use FilteringTextInputFormatter.singleLineFormatter instead. '
'This feature was deprecated after v1.20.0-1.0.pre.'
,
)
static
final
BlacklistingTextInputFormatter
singleLineFormatter
=
BlacklistingTextInputFormatter
(
RegExp
(
r'\n'
));
}
/// Old name for [FilteringTextInputFormatter.allow].
@Deprecated
(
'Use FilteringTextInputFormatter.allow instead. '
'This feature was deprecated after v1.20.0-1.0.pre.'
,
)
class
WhitelistingTextInputFormatter
extends
FilteringTextInputFormatter
{
/// Old name for [FilteringTextInputFormatter.allow].
@Deprecated
(
'Use FilteringTextInputFormatter.allow instead. '
'This feature was deprecated after v1.20.0-1.0.pre.'
,
)
WhitelistingTextInputFormatter
(
Pattern
whitelistedPattern
)
:
assert
(
whitelistedPattern
!=
null
),
super
.
allow
(
whitelistedPattern
);
/// Old name for [filterPattern].
@Deprecated
(
'Use filterPattern instead. '
'This feature was deprecated after v1.20.0-1.0.pre.'
,
)
Pattern
get
whitelistedPattern
=>
filterPattern
;
/// Old name for [FilteringTextInputFormatter.digitsOnly].
@Deprecated
(
'Use FilteringTextInputFormatter.digitsOnly instead. '
'This feature was deprecated after v1.20.0-1.0.pre.'
,
)
static
final
WhitelistingTextInputFormatter
digitsOnly
=
WhitelistingTextInputFormatter
(
RegExp
(
r'\d+'
));
}
/// A [TextInputFormatter] that prevents the insertion of more characters
/// A [TextInputFormatter] that prevents the insertion of more characters
/// than allowed.
/// than allowed.
///
///
...
...
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