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
066c5def
Unverified
Commit
066c5def
authored
May 27, 2020
by
Justin McCandless
Committed by
GitHub
May 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consistent American spelling of 'behavior' (#58016)
parent
29736f6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
input_decorator.dart
packages/flutter/lib/src/material/input_decorator.dart
+9
-9
No files found.
packages/flutter/lib/src/material/input_decorator.dart
View file @
066c5def
...
...
@@ -465,7 +465,7 @@ class _HelperErrorState extends State<_HelperError> with SingleTickerProviderSta
}
}
/// Defines the behavio
u
r of the floating label
/// Defines the behavior of the floating label
enum
FloatingLabelBehavior
{
/// The label will always be positioned within the content, or hidden.
never
,
...
...
@@ -1978,11 +1978,11 @@ class _InputDecoratorState extends State<InputDecorator> with TickerProviderStat
if
(
widget
.
decoration
!=
old
.
decoration
)
_effectiveDecoration
=
null
;
final
bool
floatBehavio
u
rChanged
=
widget
.
decoration
.
floatingLabelBehavior
!=
old
.
decoration
.
floatingLabelBehavior
final
bool
floatBehaviorChanged
=
widget
.
decoration
.
floatingLabelBehavior
!=
old
.
decoration
.
floatingLabelBehavior
// ignore: deprecated_member_use_from_same_package
||
widget
.
decoration
.
hasFloatingPlaceholder
!=
old
.
decoration
.
hasFloatingPlaceholder
;
if
(
widget
.
_labelShouldWithdraw
!=
old
.
_labelShouldWithdraw
||
floatBehavio
u
rChanged
)
{
if
(
widget
.
_labelShouldWithdraw
!=
old
.
_labelShouldWithdraw
||
floatBehaviorChanged
)
{
if
(
_floatingLabelEnabled
&&
(
widget
.
_labelShouldWithdraw
||
widget
.
decoration
.
floatingLabelBehavior
==
FloatingLabelBehavior
.
always
))
_floatingLabelController
.
forward
();
...
...
@@ -2509,7 +2509,7 @@ class InputDecoration {
this
.
errorStyle
,
this
.
errorMaxLines
,
@Deprecated
(
'Use floatingLabelBehavio
u
r instead. '
'Use floatingLabelBehavior instead. '
'This feature was deprecated after v1.13.2.'
)
this
.
hasFloatingPlaceholder
=
true
,
// ignore: deprecated_member_use_from_same_package
...
...
@@ -2555,7 +2555,7 @@ class InputDecoration {
const
InputDecoration
.
collapsed
({
@required
this
.
hintText
,
@Deprecated
(
'Use floatingLabelBehavio
u
r instead. '
'Use floatingLabelBehavior instead. '
'This feature was deprecated after v1.13.2.'
)
// ignore: deprecated_member_use_from_same_package
...
...
@@ -2731,7 +2731,7 @@ class InputDecoration {
/// Defaults to true.
///
@Deprecated
(
'Use floatingLabelBehavio
u
r instead. '
'Use floatingLabelBehavior instead. '
'This feature was deprecated after v1.13.2.'
)
final
bool
hasFloatingPlaceholder
;
...
...
@@ -3613,7 +3613,7 @@ class InputDecorationTheme with Diagnosticable {
this
.
errorStyle
,
this
.
errorMaxLines
,
@Deprecated
(
'Use floatingLabelBehavio
u
r instead. '
'Use floatingLabelBehavior instead. '
'This feature was deprecated after v1.13.2.'
)
// ignore: deprecated_member_use_from_same_package
...
...
@@ -3708,7 +3708,7 @@ class InputDecorationTheme with Diagnosticable {
///
/// Defaults to true.
@Deprecated
(
'Use floatingLabelBehavio
u
r instead. '
'Use floatingLabelBehavior instead. '
'This feature was deprecated after v1.13.2.'
)
final
bool
hasFloatingPlaceholder
;
...
...
@@ -3963,7 +3963,7 @@ class InputDecorationTheme with Diagnosticable {
TextStyle
errorStyle
,
int
errorMaxLines
,
@Deprecated
(
'Use floatingLabelBehavio
u
r instead. '
'Use floatingLabelBehavior instead. '
'This feature was deprecated after v1.13.2.'
)
bool
hasFloatingPlaceholder
,
...
...
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