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
0105c8f3
Unverified
Commit
0105c8f3
authored
Mar 23, 2021
by
Kate Lovett
Committed by
GitHub
Mar 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dart Fix for InputDecoration (#78672)
parent
c2d12ea4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
233 additions
and
0 deletions
+233
-0
fix_data.yaml
packages/flutter/lib/fix_data.yaml
+205
-0
material.dart
packages/flutter/test_fixes/material.dart
+15
-0
material.dart.expect
packages/flutter/test_fixes/material.dart.expect
+13
-0
No files found.
packages/flutter/lib/fix_data.yaml
View file @
0105c8f3
...
...
@@ -12,6 +12,211 @@
version
:
1
transforms
:
# Changes made in https://github.com/flutter/flutter/pull/46115
-
title
:
"
Migrate
to
'floatingLabelBehavior'"
date
:
2020-01-15
element
:
uris
:
[
'
material.dart'
]
field
:
'
hasFloatingPlaceholder'
inClass
:
'
InputDecorationTheme'
changes
:
-
kind
:
'
rename'
newName
:
'
floatingLabelBehavior'
# Changes made in https://github.com/flutter/flutter/pull/46115
-
title
:
"
Migrate
to
'floatingLabelBehavior'"
date
:
2020-01-15
element
:
uris
:
[
'
material.dart'
]
constructor
:
'
'
inClass
:
'
InputDecorationTheme'
oneOf
:
-
if
:
"
hasFloatingPlaceholder
==
'true'"
changes
:
-
kind
:
'
addParameter'
index
:
14
name
:
'
floatingLabelBehavior'
style
:
optional_named
argumentValue
:
expression
:
'
{%
FloatingLabelBehavior
%}.auto'
requiredIf
:
"
hasFloatingPlaceholder
==
'true'"
variables
:
FloatingLabelBehavior
:
kind
:
'
import'
uris
:
[
'
material.dart'
]
name
:
'
FloatingLabelBehavior'
-
kind
:
'
removeParameter'
name
:
'
hasFloatingPlaceholder'
-
if
:
"
hasFloatingPlaceholder
==
'false'"
changes
:
-
kind
:
'
addParameter'
index
:
14
name
:
'
floatingLabelBehavior'
style
:
optional_named
argumentValue
:
expression
:
'
{%
FloatingLabelBehavior
%}.never'
requiredIf
:
"
hasFloatingPlaceholder
==
'false'"
variables
:
FloatingLabelBehavior
:
kind
:
'
import'
uris
:
[
'
material.dart'
]
name
:
'
FloatingLabelBehavior'
-
kind
:
'
removeParameter'
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
:
hasFloatingPlaceholder
:
kind
:
'
fragment'
value
:
'
arguments[hasFloatingPlaceholder]'
# Changes made in https://github.com/flutter/flutter/pull/46115
-
title
:
"
Migrate
to
'floatingLabelBehavior'"
date
:
2020-01-15
element
:
uris
:
[
'
material.dart'
]
field
:
'
hasFloatingPlaceholder'
inClass
:
'
InputDecoration'
changes
:
-
kind
:
'
rename'
newName
:
'
floatingLabelBehavior'
# Changes made in https://github.com/flutter/flutter/pull/46115
-
title
:
"
Rename
to
'floatingLabelBehavior'"
date
:
2020-01-15
element
:
uris
:
[
'
material.dart'
]
constructor
:
'
collapsed'
inClass
:
'
InputDecoration'
oneOf
:
-
if
:
"
hasFloatingPlaceholder
==
'true'"
changes
:
-
kind
:
'
addParameter'
index
:
14
name
:
'
floatingLabelBehavior'
style
:
optional_named
argumentValue
:
expression
:
'
{%
FloatingLabelBehavior
%}.auto'
requiredIf
:
"
hasFloatingPlaceholder
==
'true'"
variables
:
FloatingLabelBehavior
:
kind
:
'
import'
uris
:
[
'
material.dart'
]
name
:
'
FloatingLabelBehavior'
-
kind
:
'
removeParameter'
name
:
'
hasFloatingPlaceholder'
-
if
:
"
hasFloatingPlaceholder
==
'false'"
changes
:
-
kind
:
'
addParameter'
index
:
14
name
:
'
floatingLabelBehavior'
style
:
optional_named
argumentValue
:
expression
:
'
{%
FloatingLabelBehavior
%}.never'
requiredIf
:
"
hasFloatingPlaceholder
==
'false'"
variables
:
FloatingLabelBehavior
:
kind
:
'
import'
uris
:
[
'
material.dart'
]
name
:
'
FloatingLabelBehavior'
-
kind
:
'
removeParameter'
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
:
hasFloatingPlaceholder
:
kind
:
'
fragment'
value
:
'
arguments[hasFloatingPlaceholder]'
# Changes made in https://github.com/flutter/flutter/pull/46115
-
title
:
"
Rename
to
'floatingLabelBehavior'"
date
:
2020-01-15
element
:
uris
:
[
'
material.dart'
]
constructor
:
'
'
inClass
:
'
InputDecoration'
oneOf
:
-
if
:
"
hasFloatingPlaceholder
==
'true'"
changes
:
-
kind
:
'
addParameter'
index
:
14
name
:
'
floatingLabelBehavior'
style
:
optional_named
argumentValue
:
expression
:
'
{%
FloatingLabelBehavior
%}.auto'
requiredIf
:
"
hasFloatingPlaceholder
==
'true'"
variables
:
FloatingLabelBehavior
:
kind
:
'
import'
uris
:
[
'
material.dart'
]
name
:
'
FloatingLabelBehavior'
-
kind
:
'
removeParameter'
name
:
'
hasFloatingPlaceholder'
-
if
:
"
hasFloatingPlaceholder
==
'false'"
changes
:
-
kind
:
'
addParameter'
index
:
14
name
:
'
floatingLabelBehavior'
style
:
optional_named
argumentValue
:
expression
:
'
{%
FloatingLabelBehavior
%}.never'
requiredIf
:
"
hasFloatingPlaceholder
==
'false'"
variables
:
FloatingLabelBehavior
:
kind
:
'
import'
uris
:
[
'
material.dart'
]
name
:
'
FloatingLabelBehavior'
-
kind
:
'
removeParameter'
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
:
hasFloatingPlaceholder
:
kind
:
'
fragment'
value
:
'
arguments[hasFloatingPlaceholder]'
# Changes made in https://github.com/flutter/flutter/pull/59127
-
title
:
"
Migrate
to
'label'"
date
:
2020-07-09
...
...
packages/flutter/test_fixes/material.dart
View file @
0105c8f3
...
...
@@ -178,4 +178,19 @@ void main() {
// Changes made in https://github.com/flutter/flutter/pull/59127
const
BottomNavigationBarItem
bottomNavigationBarItem
=
BottomNavigationBarItem
(
title:
myTitle
);
bottomNavigationBarItem
.
title
;
// Changes made in https://github.com/flutter/flutter/pull/46115
const
InputDecoration
inputDecoration
=
InputDecoration
(
hasFloatingPlaceholder:
true
);
InputDecoration
(
hasFloatingPlaceholder:
false
);
InputDecoration
();
InputDecoration
.
collapsed
(
hasFloatingPlaceholder:
true
);
InputDecoration
.
collapsed
(
hasFloatingPlaceholder:
false
);
InputDecoration
.
collapsed
();
inputDecoration
.
hasFloatingPlaceholder
;
const
InputDecorationTheme
inputDecorationTheme
=
InputDecorationTheme
(
hasFloatingPlaceholder:
true
);
InputDecorationTheme
(
hasFloatingPlaceholder:
false
);
InputDecorationTheme
();
inputDecorationTheme
.
hasFloatingPlaceholder
;
}
packages/flutter/test_fixes/material.dart.expect
View file @
0105c8f3
...
...
@@ -178,4 +178,17 @@ void main() {
// Changes made in https://github.com/flutter/flutter/pull/59127
const BottomNavigationBarItem bottomNavigationBarItem = BottomNavigationBarItem(label: myTitle);
bottomNavigationBarItem.label;
// Changes made in https://github.com/flutter/flutter/pull/46115
const InputDecoration inputDecoration = InputDecoration(floatingLabelBehavior: FloatingLabelBehavior.auto);
InputDecoration(floatingLabelBehavior: FloatingLabelBehavior.never);
InputDecoration();
InputDecoration.collapsed(floatingLabelBehavior: FloatingLabelBehavior.auto);
InputDecoration.collapsed(floatingLabelBehavior: FloatingLabelBehavior.never);
InputDecoration.collapsed();
inputDecoration.floatingLabelBehavior;
const InputDecorationTheme inputDecorationTheme = InputDecorationTheme(floatingLabelBehavior: FloatingLabelBehavior.auto);
InputDecorationTheme(floatingLabelBehavior: FloatingLabelBehavior.never);
InputDecorationTheme();
inputDecorationTheme.floatingLabelBehavior;
}
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