Unverified Commit 4889064f authored by Kate Lovett's avatar Kate Lovett Committed by GitHub

Fix the fix (#90217)

parent a8a27635
...@@ -2162,22 +2162,6 @@ transforms: ...@@ -2162,22 +2162,6 @@ transforms:
name: 'FloatingLabelBehavior' name: 'FloatingLabelBehavior'
- kind: 'removeParameter' - kind: 'removeParameter'
name: 'hasFloatingPlaceholder' name: 'hasFloatingPlaceholder'
- if: "hasFloatingPlaceholder != 'true' && hasFloatingPlaceholder != 'false'"
changes:
- kind: 'addParameter'
index: 14
name: 'floatingLabelBehavior'
style: optional_named
argumentValue:
expression: '{% hasFloatingPlaceholder %} ? {% FloatingLabelBehavior %}.auto : {% FloatingLabelBehavior %}.never'
requiredIf: "hasFloatingPlaceholder != 'true' && hasFloatingPlaceholder != 'false'"
variables:
FloatingLabelBehavior:
kind: 'import'
uris: [ 'material.dart' ]
name: 'FloatingLabelBehavior'
- kind: 'removeParameter'
name: 'hasFloatingPlaceholder'
variables: variables:
hasFloatingPlaceholder: hasFloatingPlaceholder:
kind: 'fragment' kind: 'fragment'
...@@ -2223,22 +2207,6 @@ transforms: ...@@ -2223,22 +2207,6 @@ transforms:
name: 'FloatingLabelBehavior' name: 'FloatingLabelBehavior'
- kind: 'removeParameter' - kind: 'removeParameter'
name: 'hasFloatingPlaceholder' name: 'hasFloatingPlaceholder'
- if: "hasFloatingPlaceholder != 'true' && hasFloatingPlaceholder != 'false'"
changes:
- kind: 'addParameter'
index: 14
name: 'floatingLabelBehavior'
style: optional_named
argumentValue:
expression: '{% hasFloatingPlaceholder %} ? {% FloatingLabelBehavior %}.auto : {% FloatingLabelBehavior %}.never'
requiredIf: "hasFloatingPlaceholder != 'true' && hasFloatingPlaceholder != 'false'"
variables:
FloatingLabelBehavior:
kind: 'import'
uris: [ 'material.dart' ]
name: 'FloatingLabelBehavior'
- kind: 'removeParameter'
name: 'hasFloatingPlaceholder'
variables: variables:
hasFloatingPlaceholder: hasFloatingPlaceholder:
kind: 'fragment' kind: 'fragment'
...@@ -2295,22 +2263,6 @@ transforms: ...@@ -2295,22 +2263,6 @@ transforms:
name: 'FloatingLabelBehavior' name: 'FloatingLabelBehavior'
- kind: 'removeParameter' - kind: 'removeParameter'
name: 'hasFloatingPlaceholder' name: 'hasFloatingPlaceholder'
- if: "hasFloatingPlaceholder != 'true' && hasFloatingPlaceholder != 'false'"
changes:
- kind: 'addParameter'
index: 14
name: 'floatingLabelBehavior'
style: optional_named
argumentValue:
expression: '{% hasFloatingPlaceholder %} ? {% FloatingLabelBehavior %}.auto : {% FloatingLabelBehavior %}.never'
requiredIf: "hasFloatingPlaceholder != 'true' && hasFloatingPlaceholder != 'false'"
variables:
FloatingLabelBehavior:
kind: 'import'
uris: [ 'material.dart' ]
name: 'FloatingLabelBehavior'
- kind: 'removeParameter'
name: 'hasFloatingPlaceholder'
variables: variables:
hasFloatingPlaceholder: hasFloatingPlaceholder:
kind: 'fragment' kind: 'fragment'
...@@ -2356,22 +2308,6 @@ transforms: ...@@ -2356,22 +2308,6 @@ transforms:
name: 'FloatingLabelBehavior' name: 'FloatingLabelBehavior'
- kind: 'removeParameter' - kind: 'removeParameter'
name: 'hasFloatingPlaceholder' name: 'hasFloatingPlaceholder'
- if: "hasFloatingPlaceholder != 'true' && hasFloatingPlaceholder != 'false'"
changes:
- kind: 'addParameter'
index: 14
name: 'floatingLabelBehavior'
style: optional_named
argumentValue:
expression: '{% hasFloatingPlaceholder %} ? {% FloatingLabelBehavior %}.auto : {% FloatingLabelBehavior %}.never'
requiredIf: "hasFloatingPlaceholder != 'true' && hasFloatingPlaceholder != 'false'"
variables:
FloatingLabelBehavior:
kind: 'import'
uris: [ 'material.dart' ]
name: 'FloatingLabelBehavior'
- kind: 'removeParameter'
name: 'hasFloatingPlaceholder'
variables: variables:
hasFloatingPlaceholder: hasFloatingPlaceholder:
kind: 'fragment' kind: 'fragment'
......
...@@ -189,17 +189,21 @@ void main() { ...@@ -189,17 +189,21 @@ void main() {
const InputDecoration inputDecoration = InputDecoration(hasFloatingPlaceholder: true); const InputDecoration inputDecoration = InputDecoration(hasFloatingPlaceholder: true);
InputDecoration(hasFloatingPlaceholder: false); InputDecoration(hasFloatingPlaceholder: false);
InputDecoration(); InputDecoration();
InputDecoration(error: '');
InputDecoration.collapsed(hasFloatingPlaceholder: true); InputDecoration.collapsed(hasFloatingPlaceholder: true);
InputDecoration.collapsed(hasFloatingPlaceholder: false); InputDecoration.collapsed(hasFloatingPlaceholder: false);
InputDecoration.collapsed(); InputDecoration.collapsed();
InputDecoration.collapsed(error: '');
inputDecoration.hasFloatingPlaceholder; inputDecoration.hasFloatingPlaceholder;
const InputDecorationTheme inputDecorationTheme = InputDecorationTheme(hasFloatingPlaceholder: true); const InputDecorationTheme inputDecorationTheme = InputDecorationTheme(hasFloatingPlaceholder: true);
InputDecorationTheme(hasFloatingPlaceholder: false); InputDecorationTheme(hasFloatingPlaceholder: false);
InputDecorationTheme(); InputDecorationTheme();
InputDecorationTheme(error: '');
inputDecorationTheme.hasFloatingPlaceholder; inputDecorationTheme.hasFloatingPlaceholder;
inputDecorationTheme.copyWith(hasFloatingPlaceholder: false); inputDecorationTheme.copyWith(hasFloatingPlaceholder: false);
inputDecorationTheme.copyWith(hasFloatingPlaceholder: true); inputDecorationTheme.copyWith(hasFloatingPlaceholder: true);
inputDecorationTheme.copyWith(); inputDecorationTheme.copyWith();
inputDecorationTheme.copyWith(error: '');
// Changes made in https://github.com/flutter/flutter/pull/66482 // Changes made in https://github.com/flutter/flutter/pull/66482
ThemeData(textSelectionColor: Colors.red); ThemeData(textSelectionColor: Colors.red);
......
...@@ -190,17 +190,21 @@ void main() { ...@@ -190,17 +190,21 @@ void main() {
const InputDecoration inputDecoration = InputDecoration(floatingLabelBehavior: FloatingLabelBehavior.auto); const InputDecoration inputDecoration = InputDecoration(floatingLabelBehavior: FloatingLabelBehavior.auto);
InputDecoration(floatingLabelBehavior: FloatingLabelBehavior.never); InputDecoration(floatingLabelBehavior: FloatingLabelBehavior.never);
InputDecoration(); InputDecoration();
InputDecoration(error: '');
InputDecoration.collapsed(floatingLabelBehavior: FloatingLabelBehavior.auto); InputDecoration.collapsed(floatingLabelBehavior: FloatingLabelBehavior.auto);
InputDecoration.collapsed(floatingLabelBehavior: FloatingLabelBehavior.never); InputDecoration.collapsed(floatingLabelBehavior: FloatingLabelBehavior.never);
InputDecoration.collapsed(); InputDecoration.collapsed();
InputDecoration.collapsed(error: '');
inputDecoration.floatingLabelBehavior; inputDecoration.floatingLabelBehavior;
const InputDecorationTheme inputDecorationTheme = InputDecorationTheme(floatingLabelBehavior: FloatingLabelBehavior.auto); const InputDecorationTheme inputDecorationTheme = InputDecorationTheme(floatingLabelBehavior: FloatingLabelBehavior.auto);
InputDecorationTheme(floatingLabelBehavior: FloatingLabelBehavior.never); InputDecorationTheme(floatingLabelBehavior: FloatingLabelBehavior.never);
InputDecorationTheme(); InputDecorationTheme();
InputDecorationTheme(error: '');
inputDecorationTheme.floatingLabelBehavior; inputDecorationTheme.floatingLabelBehavior;
inputDecorationTheme.copyWith(floatingLabelBehavior: FloatingLabelBehavior.never); inputDecorationTheme.copyWith(floatingLabelBehavior: FloatingLabelBehavior.never);
inputDecorationTheme.copyWith(floatingLabelBehavior: FloatingLabelBehavior.auto); inputDecorationTheme.copyWith(floatingLabelBehavior: FloatingLabelBehavior.auto);
inputDecorationTheme.copyWith(); inputDecorationTheme.copyWith();
inputDecorationTheme.copyWith(error: '');
// Changes made in https://github.com/flutter/flutter/pull/66482 // Changes made in https://github.com/flutter/flutter/pull/66482
ThemeData(textSelectionTheme: TextSelectionThemeData(selectionColor: Colors.red)); ThemeData(textSelectionTheme: TextSelectionThemeData(selectionColor: Colors.red));
......
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