Unverified Commit 066c5def authored by Justin McCandless's avatar Justin McCandless Committed by GitHub

Consistent American spelling of 'behavior' (#58016)

parent 29736f6f
...@@ -465,7 +465,7 @@ class _HelperErrorState extends State<_HelperError> with SingleTickerProviderSta ...@@ -465,7 +465,7 @@ class _HelperErrorState extends State<_HelperError> with SingleTickerProviderSta
} }
} }
/// Defines the behaviour of the floating label /// Defines the behavior of the floating label
enum FloatingLabelBehavior { enum FloatingLabelBehavior {
/// The label will always be positioned within the content, or hidden. /// The label will always be positioned within the content, or hidden.
never, never,
...@@ -1978,11 +1978,11 @@ class _InputDecoratorState extends State<InputDecorator> with TickerProviderStat ...@@ -1978,11 +1978,11 @@ class _InputDecoratorState extends State<InputDecorator> with TickerProviderStat
if (widget.decoration != old.decoration) if (widget.decoration != old.decoration)
_effectiveDecoration = null; _effectiveDecoration = null;
final bool floatBehaviourChanged = widget.decoration.floatingLabelBehavior != old.decoration.floatingLabelBehavior final bool floatBehaviorChanged = widget.decoration.floatingLabelBehavior != old.decoration.floatingLabelBehavior
// ignore: deprecated_member_use_from_same_package // ignore: deprecated_member_use_from_same_package
|| widget.decoration.hasFloatingPlaceholder != old.decoration.hasFloatingPlaceholder; || widget.decoration.hasFloatingPlaceholder != old.decoration.hasFloatingPlaceholder;
if (widget._labelShouldWithdraw != old._labelShouldWithdraw || floatBehaviourChanged) { if (widget._labelShouldWithdraw != old._labelShouldWithdraw || floatBehaviorChanged) {
if (_floatingLabelEnabled if (_floatingLabelEnabled
&& (widget._labelShouldWithdraw || widget.decoration.floatingLabelBehavior == FloatingLabelBehavior.always)) && (widget._labelShouldWithdraw || widget.decoration.floatingLabelBehavior == FloatingLabelBehavior.always))
_floatingLabelController.forward(); _floatingLabelController.forward();
...@@ -2509,7 +2509,7 @@ class InputDecoration { ...@@ -2509,7 +2509,7 @@ class InputDecoration {
this.errorStyle, this.errorStyle,
this.errorMaxLines, this.errorMaxLines,
@Deprecated( @Deprecated(
'Use floatingLabelBehaviour instead. ' 'Use floatingLabelBehavior instead. '
'This feature was deprecated after v1.13.2.' 'This feature was deprecated after v1.13.2.'
) )
this.hasFloatingPlaceholder = true, // ignore: deprecated_member_use_from_same_package this.hasFloatingPlaceholder = true, // ignore: deprecated_member_use_from_same_package
...@@ -2555,7 +2555,7 @@ class InputDecoration { ...@@ -2555,7 +2555,7 @@ class InputDecoration {
const InputDecoration.collapsed({ const InputDecoration.collapsed({
@required this.hintText, @required this.hintText,
@Deprecated( @Deprecated(
'Use floatingLabelBehaviour instead. ' 'Use floatingLabelBehavior instead. '
'This feature was deprecated after v1.13.2.' 'This feature was deprecated after v1.13.2.'
) )
// ignore: deprecated_member_use_from_same_package // ignore: deprecated_member_use_from_same_package
...@@ -2731,7 +2731,7 @@ class InputDecoration { ...@@ -2731,7 +2731,7 @@ class InputDecoration {
/// Defaults to true. /// Defaults to true.
/// ///
@Deprecated( @Deprecated(
'Use floatingLabelBehaviour instead. ' 'Use floatingLabelBehavior instead. '
'This feature was deprecated after v1.13.2.' 'This feature was deprecated after v1.13.2.'
) )
final bool hasFloatingPlaceholder; final bool hasFloatingPlaceholder;
...@@ -3613,7 +3613,7 @@ class InputDecorationTheme with Diagnosticable { ...@@ -3613,7 +3613,7 @@ class InputDecorationTheme with Diagnosticable {
this.errorStyle, this.errorStyle,
this.errorMaxLines, this.errorMaxLines,
@Deprecated( @Deprecated(
'Use floatingLabelBehaviour instead. ' 'Use floatingLabelBehavior instead. '
'This feature was deprecated after v1.13.2.' 'This feature was deprecated after v1.13.2.'
) )
// ignore: deprecated_member_use_from_same_package // ignore: deprecated_member_use_from_same_package
...@@ -3708,7 +3708,7 @@ class InputDecorationTheme with Diagnosticable { ...@@ -3708,7 +3708,7 @@ class InputDecorationTheme with Diagnosticable {
/// ///
/// Defaults to true. /// Defaults to true.
@Deprecated( @Deprecated(
'Use floatingLabelBehaviour instead. ' 'Use floatingLabelBehavior instead. '
'This feature was deprecated after v1.13.2.' 'This feature was deprecated after v1.13.2.'
) )
final bool hasFloatingPlaceholder; final bool hasFloatingPlaceholder;
...@@ -3963,7 +3963,7 @@ class InputDecorationTheme with Diagnosticable { ...@@ -3963,7 +3963,7 @@ class InputDecorationTheme with Diagnosticable {
TextStyle errorStyle, TextStyle errorStyle,
int errorMaxLines, int errorMaxLines,
@Deprecated( @Deprecated(
'Use floatingLabelBehaviour instead. ' 'Use floatingLabelBehavior instead. '
'This feature was deprecated after v1.13.2.' 'This feature was deprecated after v1.13.2.'
) )
bool hasFloatingPlaceholder, bool hasFloatingPlaceholder,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment