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
f9ff8343
Unverified
Commit
f9ff8343
authored
Sep 17, 2021
by
Kate Lovett
Committed by
GitHub
Sep 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more tests for dart fixes (#90291)
parent
30f0944b
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
268 additions
and
6 deletions
+268
-6
cupertino.dart
packages/flutter/test_fixes/cupertino.dart
+37
-2
cupertino.dart.expect
packages/flutter/test_fixes/cupertino.dart.expect
+37
-2
gestures.dart
packages/flutter/test_fixes/gestures.dart
+18
-0
gestures.dart.expect
packages/flutter/test_fixes/gestures.dart.expect
+18
-0
material.dart
packages/flutter/test_fixes/material.dart
+46
-1
material.dart.expect
packages/flutter/test_fixes/material.dart.expect
+46
-1
rendering.dart
packages/flutter/test_fixes/rendering.dart
+2
-0
rendering.dart.expect
packages/flutter/test_fixes/rendering.dart.expect
+2
-0
services.dart
packages/flutter/test_fixes/services.dart
+7
-0
services.dart.expect
packages/flutter/test_fixes/services.dart.expect
+7
-0
widgets.dart
packages/flutter/test_fixes/widgets.dart
+24
-0
widgets.dart.expect
packages/flutter/test_fixes/widgets.dart.expect
+24
-0
No files found.
packages/flutter/test_fixes/cupertino.dart
View file @
f9ff8343
...
@@ -12,8 +12,10 @@ void main() {
...
@@ -12,8 +12,10 @@ void main() {
Object
object
;
Object
object
;
// Change made in https://github.com/flutter/flutter/pull/41859
// Change made in https://github.com/flutter/flutter/pull/41859
const
CupertinoTextThemeData
themeData
=
CupertinoTextThemeData
(
brightness:
Brightness
.
dark
);
CupertinoTextThemeData
themeData
=
CupertinoTextThemeData
(
brightness:
Brightness
.
dark
);
themeData
.
copyWith
(
brightness:
Brightness
.
light
);
themeData
.
copyWith
(
brightness:
Brightness
.
light
);
themeData
=
CupertinoTextThemeData
(
error:
''
);
themeData
.
copyWith
(
error:
''
);
// Changes made in https://github.com/flutter/flutter/pull/44189
// Changes made in https://github.com/flutter/flutter/pull/44189
const
Element
element
=
Element
(
myWidget
);
const
Element
element
=
Element
(
myWidget
);
...
@@ -47,81 +49,106 @@ void main() {
...
@@ -47,81 +49,106 @@ void main() {
// Changes made in https://github.com/flutter/flutter/pull/66305
// Changes made in https://github.com/flutter/flutter/pull/66305
const
Stack
stack
=
Stack
(
overflow:
Overflow
.
visible
);
const
Stack
stack
=
Stack
(
overflow:
Overflow
.
visible
);
const
Stack
stack
=
Stack
(
overflow:
Overflow
.
clip
);
const
Stack
stack
=
Stack
(
overflow:
Overflow
.
clip
);
const
Stack
stack
=
Stack
(
error:
''
);
final
behavior
=
stack
.
overflow
;
final
behavior
=
stack
.
overflow
;
// Changes made in https://github.com/flutter/flutter/pull/61648
// Changes made in https://github.com/flutter/flutter/pull/61648
const
Form
form
=
Form
(
autovalidate:
true
);
const
Form
form
=
Form
(
autovalidate:
true
);
const
Form
form
=
Form
(
autovalidate:
false
);
const
Form
form
=
Form
(
autovalidate:
false
);
const
Form
form
=
Form
(
error:
''
);
final
autoMode
=
form
.
autovalidate
;
final
autoMode
=
form
.
autovalidate
;
// Changes made in https://github.com/flutter/flutter/pull/61648
// Changes made in https://github.com/flutter/flutter/pull/61648
const
FormField
formField
=
FormField
(
autovalidate:
true
);
const
FormField
formField
=
FormField
(
autovalidate:
true
);
const
FormField
formField
=
FormField
(
autovalidate:
false
);
const
FormField
formField
=
FormField
(
autovalidate:
false
);
const
FormField
formField
=
FormField
(
error:
''
);
final
autoMode
=
formField
.
autovalidate
;
final
autoMode
=
formField
.
autovalidate
;
// Changes made in https://github.com/flutter/flutter/pull/68736
// Changes made in https://github.com/flutter/flutter/pull/68736
MediaQuery
.
of
(
context
,
nullOk:
true
);
MediaQuery
.
of
(
context
,
nullOk:
true
);
MediaQuery
.
of
(
context
,
nullOk:
false
);
MediaQuery
.
of
(
context
,
nullOk:
false
);
MediaQuery
.
of
(
error:
''
);
// Changes made in https://github.com/flutter/flutter/pull/70726
// Changes made in https://github.com/flutter/flutter/pull/70726
Navigator
.
of
(
context
,
nullOk:
true
);
Navigator
.
of
(
context
,
nullOk:
true
);
Navigator
.
of
(
context
,
nullOk:
false
);
Navigator
.
of
(
context
,
nullOk:
false
);
Navigator
.
of
(
error:
''
);
// Changes made in https://github.com/flutter/flutter/pull/68910
// Changes made in https://github.com/flutter/flutter/pull/68910
Router
.
of
(
context
,
nullOk:
true
);
Router
.
of
(
context
,
nullOk:
true
);
Router
.
of
(
context
,
nullOk:
false
);
Router
.
of
(
context
,
nullOk:
false
);
Router
.
of
(
error:
''
);
// Changes made in https://github.com/flutter/flutter/pull/68911
// Changes made in https://github.com/flutter/flutter/pull/68911
Localizations
.
localeOf
(
context
,
nullOk:
true
);
Localizations
.
localeOf
(
context
,
nullOk:
true
);
Localizations
.
localeOf
(
context
,
nullOk:
false
);
Localizations
.
localeOf
(
context
,
nullOk:
false
);
Localizations
.
localeOf
(
error:
''
);
// Changes made in https://github.com/flutter/flutter/pull/68917
// Changes made in https://github.com/flutter/flutter/pull/68917
FocusTraversalOrder
.
of
(
context
,
nullOk:
true
);
FocusTraversalOrder
.
of
(
context
,
nullOk:
true
);
FocusTraversalOrder
.
of
(
context
,
nullOk:
false
);
FocusTraversalOrder
.
of
(
context
,
nullOk:
false
);
FocusTraversalOrder
.
of
(
error:
''
);
FocusTraversalGroup
.
of
(
error:
''
);
FocusTraversalGroup
.
of
(
context
,
nullOk:
true
);
FocusTraversalGroup
.
of
(
context
,
nullOk:
true
);
FocusTraversalGroup
.
of
(
context
,
nullOk:
false
);
FocusTraversalGroup
.
of
(
context
,
nullOk:
false
);
Focus
.
of
(
context
,
nullOk:
true
);
Focus
.
of
(
context
,
nullOk:
true
);
Focus
.
of
(
context
,
nullOk:
false
);
Focus
.
of
(
context
,
nullOk:
false
);
Focus
.
of
(
error:
''
);
// Changes made in https://github.com/flutter/flutter/pull/68921
// Changes made in https://github.com/flutter/flutter/pull/68921
Shortcuts
.
of
(
context
,
nullOk:
true
);
Shortcuts
.
of
(
context
,
nullOk:
true
);
Shortcuts
.
of
(
context
,
nullOk:
false
);
Shortcuts
.
of
(
context
,
nullOk:
false
);
Shortcuts
.
of
(
error:
''
);
Actions
.
find
(
error:
''
);
Actions
.
find
(
context
,
nullOk:
true
);
Actions
.
find
(
context
,
nullOk:
true
);
Actions
.
find
(
context
,
nullOk:
false
);
Actions
.
find
(
context
,
nullOk:
false
);
Actions
.
handler
(
context
,
nullOk:
true
);
Actions
.
handler
(
context
,
nullOk:
true
);
Actions
.
handler
(
context
,
nullOk:
false
);
Actions
.
handler
(
context
,
nullOk:
false
);
Actions
.
handler
(
error:
''
);
Actions
.
invoke
(
error:
''
);
Actions
.
invoke
(
context
,
nullOk:
true
);
Actions
.
invoke
(
context
,
nullOk:
true
);
Actions
.
invoke
(
context
,
nullOk:
false
);
Actions
.
invoke
(
context
,
nullOk:
false
);
// Changes made in https://github.com/flutter/flutter/pull/68925
// Changes made in https://github.com/flutter/flutter/pull/68925
AnimatedList
.
of
(
context
,
nullOk:
true
);
AnimatedList
.
of
(
context
,
nullOk:
true
);
AnimatedList
.
of
(
context
,
nullOk:
false
);
AnimatedList
.
of
(
context
,
nullOk:
false
);
AnimatedList
.
of
(
error:
''
);
SliverAnimatedList
.
of
(
error:
''
);
SliverAnimatedList
.
of
(
context
,
nullOk:
true
);
SliverAnimatedList
.
of
(
context
,
nullOk:
true
);
SliverAnimatedList
.
of
(
context
,
nullOk:
false
);
SliverAnimatedList
.
of
(
context
,
nullOk:
false
);
// Changes made in https://github.com/flutter/flutter/pull/68905
// Changes made in https://github.com/flutter/flutter/pull/68905
CupertinoDynamicColor
.
resolve
(
Color
(
0
),
context
,
nullOk:
true
);
CupertinoDynamicColor
.
resolve
(
Color
(
0
),
context
,
nullOk:
true
);
CupertinoDynamicColor
.
resolve
(
Color
(
0
),
context
,
nullOk:
false
);
CupertinoDynamicColor
.
resolve
(
Color
(
0
),
context
,
nullOk:
false
);
CupertinoDynamicColor
.
resolve
(
error:
''
);
CupertinoDynamicColor
.
resolveFrom
(
error:
''
);
CupertinoDynamicColor
.
resolveFrom
(
context
,
nullOk:
true
);
CupertinoDynamicColor
.
resolveFrom
(
context
,
nullOk:
true
);
CupertinoDynamicColor
.
resolveFrom
(
context
,
nullOk:
false
);
CupertinoDynamicColor
.
resolveFrom
(
context
,
nullOk:
false
);
CupertinoUserInterfaceLevel
.
of
(
context
,
nullOk:
true
);
CupertinoUserInterfaceLevel
.
of
(
context
,
nullOk:
true
);
CupertinoUserInterfaceLevel
.
of
(
context
,
nullOk:
false
);
CupertinoUserInterfaceLevel
.
of
(
context
,
nullOk:
false
);
CupertinoUserInterfaceLevel
.
of
(
error:
''
);
// Changes made in https://github.com/flutter/flutter/pull/68736
// Changes made in https://github.com/flutter/flutter/pull/68736
CupertinoTheme
.
brightnessOf
(
context
,
nullOk:
true
);
CupertinoTheme
.
brightnessOf
(
context
,
nullOk:
true
);
CupertinoTheme
.
brightnessOf
(
context
,
nullOk:
false
);
CupertinoTheme
.
brightnessOf
(
context
,
nullOk:
false
);
CupertinoTheme
.
brightnessOf
(
error:
''
);
// Changes made in https://github.com/flutter/flutter/pull/68905
// Changes made in https://github.com/flutter/flutter/pull/68905
CupertinoThemeData
.
resolveFrom
(
context
,
nullOk:
true
);
CupertinoThemeData
.
resolveFrom
(
context
,
nullOk:
true
);
CupertinoThemeData
.
resolveFrom
(
context
,
nullOk:
false
);
CupertinoThemeData
.
resolveFrom
(
context
,
nullOk:
false
);
CupertinoThemeData
.
resolveFrom
(
error:
''
);
NoDefaultCupertinoThemeData
.
resolveFrom
(
error:
''
);
NoDefaultCupertinoThemeData
.
resolveFrom
(
context
,
nullOk:
true
);
NoDefaultCupertinoThemeData
.
resolveFrom
(
context
,
nullOk:
true
);
NoDefaultCupertinoThemeData
.
resolveFrom
(
context
,
nullOk:
false
);
NoDefaultCupertinoThemeData
.
resolveFrom
(
context
,
nullOk:
false
);
CupertinoTextThemeData
.
resolveFrom
(
context
,
nullOk:
true
);
CupertinoTextThemeData
.
resolveFrom
(
context
,
nullOk:
true
);
CupertinoTextThemeData
.
resolveFrom
(
context
,
nullOk:
false
);
CupertinoTextThemeData
.
resolveFrom
(
context
,
nullOk:
false
);
CupertinoTextThemeData
.
resolveFrom
(
error:
''
);
// Changes made in https://github.com/flutter/flutter/pull/72043
// Changes made in https://github.com/flutter/flutter/pull/72043
CupertinoTextField
(
maxLengthEnforced:
true
);
CupertinoTextField
(
maxLengthEnforced:
true
);
CupertinoTextField
(
maxLengthEnforced:
false
);
CupertinoTextField
(
maxLengthEnforced:
false
);
CupertinoTextField
(
error:
''
);
CupertinoTextField
.
borderless
(
error:
''
);
CupertinoTextField
.
borderless
(
maxLengthEnforced:
true
);
CupertinoTextField
.
borderless
(
maxLengthEnforced:
true
);
CupertinoTextField
.
borderless
(
maxLengthEnforced:
false
);
CupertinoTextField
.
borderless
(
maxLengthEnforced:
false
);
final
CupertinoTextField
textField
;
final
CupertinoTextField
textField
;
...
@@ -129,16 +156,20 @@ void main() {
...
@@ -129,16 +156,20 @@ void main() {
// Changes made in https://github.com/flutter/flutter/pull/59127
// Changes made in https://github.com/flutter/flutter/pull/59127
const
BottomNavigationBarItem
bottomNavigationBarItem
=
BottomNavigationBarItem
(
title:
myTitle
);
const
BottomNavigationBarItem
bottomNavigationBarItem
=
BottomNavigationBarItem
(
title:
myTitle
);
const
BottomNavigationBarItem
bottomNavigationBarItem
=
BottomNavigationBarItem
();
const
BottomNavigationBarItem
bottomNavigationBarItem
=
BottomNavigationBarItem
(
error:
''
);
bottomNavigationBarItem
.
title
;
bottomNavigationBarItem
.
title
;
// Changes made in https://github.com/flutter/flutter/pull/79160
// Changes made in https://github.com/flutter/flutter/pull/79160
Draggable
draggable
=
Draggable
();
Draggable
draggable
=
Draggable
();
draggable
=
Draggable
(
error:
''
);
draggable
=
Draggable
(
dragAnchor:
DragAnchor
.
child
);
draggable
=
Draggable
(
dragAnchor:
DragAnchor
.
child
);
draggable
=
Draggable
(
dragAnchor:
DragAnchor
.
pointer
);
draggable
=
Draggable
(
dragAnchor:
DragAnchor
.
pointer
);
draggable
.
dragAnchor
;
draggable
.
dragAnchor
;
// Changes made in https://github.com/flutter/flutter/pull/79160
// Changes made in https://github.com/flutter/flutter/pull/79160
LongPressDraggable
longPressDraggable
=
LongPressDraggable
();
LongPressDraggable
longPressDraggable
=
LongPressDraggable
();
longPressDraggable
=
LongPressDraggable
(
error:
''
);
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
child
);
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
child
);
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
pointer
);
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
pointer
);
longPressDraggable
.
dragAnchor
;
longPressDraggable
.
dragAnchor
;
...
@@ -173,16 +204,20 @@ void main() {
...
@@ -173,16 +204,20 @@ void main() {
ListWheelScrollView
listWheelScrollView
=
ListWheelScrollView
();
ListWheelScrollView
listWheelScrollView
=
ListWheelScrollView
();
listWheelScrollView
=
ListWheelScrollView
(
clipToSize:
true
);
listWheelScrollView
=
ListWheelScrollView
(
clipToSize:
true
);
listWheelScrollView
=
ListWheelScrollView
(
clipToSize:
false
);
listWheelScrollView
=
ListWheelScrollView
(
clipToSize:
false
);
listWheelScrollView
=
ListWheelScrollView
(
error:
''
);
listWheelScrollView
=
ListWheelScrollView
.
useDelegate
();
listWheelScrollView
=
ListWheelScrollView
.
useDelegate
();
listWheelScrollView
=
ListWheelScrollView
.
useDelegate
(
clipToSize:
true
);
listWheelScrollView
=
ListWheelScrollView
.
useDelegate
(
clipToSize:
true
);
listWheelScrollView
=
ListWheelScrollView
.
useDelegate
(
clipToSize:
false
);
listWheelScrollView
=
ListWheelScrollView
.
useDelegate
(
clipToSize:
false
);
listWheelScrollView
=
ListWheelScrollView
.
useDelegate
(
error:
''
);
listWheelScrollView
.
clipToSize
;
listWheelScrollView
.
clipToSize
;
ListWheelViewport
listWheelViewport
=
ListWheelViewport
();
ListWheelViewport
listWheelViewport
=
ListWheelViewport
();
listWheelViewport
=
ListWheelViewport
(
clipToSize:
true
);
listWheelViewport
=
ListWheelViewport
(
clipToSize:
true
);
listWheelViewport
=
ListWheelViewport
(
clipToSize:
false
);
listWheelViewport
=
ListWheelViewport
(
clipToSize:
false
);
listWheelViewport
=
ListWheelViewport
(
error:
''
);
listWheelViewport
.
clipToSize
;
listWheelViewport
.
clipToSize
;
// Changes made in https://github.com/flutter/flutter/pull/87839
// Changes made in https://github.com/flutter/flutter/pull/87839
final
OverscrollIndicatorNotification
notification
=
OverscrollIndicatorNotification
(
leading:
true
);
OverscrollIndicatorNotification
notification
=
OverscrollIndicatorNotification
(
leading:
true
);
notification
=
OverscrollIndicatorNotification
(
error:
''
);
notification
.
disallowGlow
();
notification
.
disallowGlow
();
}
}
packages/flutter/test_fixes/cupertino.dart.expect
View file @
f9ff8343
...
@@ -12,8 +12,10 @@ void main() {
...
@@ -12,8 +12,10 @@ void main() {
Object object;
Object object;
// Change made in https://github.com/flutter/flutter/pull/41859
// Change made in https://github.com/flutter/flutter/pull/41859
const
CupertinoTextThemeData themeData = CupertinoTextThemeData();
CupertinoTextThemeData themeData = CupertinoTextThemeData();
themeData.copyWith();
themeData.copyWith();
themeData = CupertinoTextThemeData(error: '');
themeData.copyWith(error: '');
// Changes made in https://github.com/flutter/flutter/pull/44189
// Changes made in https://github.com/flutter/flutter/pull/44189
const Element element = Element(myWidget);
const Element element = Element(myWidget);
...
@@ -47,81 +49,106 @@ void main() {
...
@@ -47,81 +49,106 @@ void main() {
// Changes made in https://github.com/flutter/flutter/pull/66305
// Changes made in https://github.com/flutter/flutter/pull/66305
const Stack stack = Stack(clipBehavior: Clip.none);
const Stack stack = Stack(clipBehavior: Clip.none);
const Stack stack = Stack(clipBehavior: Clip.hardEdge);
const Stack stack = Stack(clipBehavior: Clip.hardEdge);
const Stack stack = Stack(error: '');
final behavior = stack.clipBehavior;
final behavior = stack.clipBehavior;
// Changes made in https://github.com/flutter/flutter/pull/61648
// Changes made in https://github.com/flutter/flutter/pull/61648
const Form form = Form(autovalidateMode: AutovalidateMode.always);
const Form form = Form(autovalidateMode: AutovalidateMode.always);
const Form form = Form(autovalidateMode: AutovalidateMode.disabled);
const Form form = Form(autovalidateMode: AutovalidateMode.disabled);
const Form form = Form(error: '');
final autoMode = form.autovalidateMode;
final autoMode = form.autovalidateMode;
// Changes made in https://github.com/flutter/flutter/pull/61648
// Changes made in https://github.com/flutter/flutter/pull/61648
const FormField formField = FormField(autovalidateMode: AutovalidateMode.always);
const FormField formField = FormField(autovalidateMode: AutovalidateMode.always);
const FormField formField = FormField(autovalidateMode: AutovalidateMode.disabled);
const FormField formField = FormField(autovalidateMode: AutovalidateMode.disabled);
const FormField formField = FormField(error: '');
final autoMode = formField.autovalidateMode;
final autoMode = formField.autovalidateMode;
// Changes made in https://github.com/flutter/flutter/pull/68736
// Changes made in https://github.com/flutter/flutter/pull/68736
MediaQuery.maybeOf(context);
MediaQuery.maybeOf(context);
MediaQuery.of(context);
MediaQuery.of(context);
MediaQuery.of(error: '');
// Changes made in https://github.com/flutter/flutter/pull/70726
// Changes made in https://github.com/flutter/flutter/pull/70726
Navigator.maybeOf(context);
Navigator.maybeOf(context);
Navigator.of(context);
Navigator.of(context);
Navigator.of(error: '');
// Changes made in https://github.com/flutter/flutter/pull/68910
// Changes made in https://github.com/flutter/flutter/pull/68910
Router.maybeOf(context);
Router.maybeOf(context);
Router.of(context);
Router.of(context);
Router.of(error: '');
// Changes made in https://github.com/flutter/flutter/pull/68911
// Changes made in https://github.com/flutter/flutter/pull/68911
Localizations.maybeLocaleOf(context);
Localizations.maybeLocaleOf(context);
Localizations.localeOf(context);
Localizations.localeOf(context);
Localizations.localeOf(error: '');
// Changes made in https://github.com/flutter/flutter/pull/68917
// Changes made in https://github.com/flutter/flutter/pull/68917
FocusTraversalOrder.maybeOf(context);
FocusTraversalOrder.maybeOf(context);
FocusTraversalOrder.of(context);
FocusTraversalOrder.of(context);
FocusTraversalOrder.of(error: '');
FocusTraversalGroup.of(error: '');
FocusTraversalGroup.maybeOf(context);
FocusTraversalGroup.maybeOf(context);
FocusTraversalGroup.of(context);
FocusTraversalGroup.of(context);
Focus.maybeOf(context);
Focus.maybeOf(context);
Focus.of(context);
Focus.of(context);
Focus.of(error: '');
// Changes made in https://github.com/flutter/flutter/pull/68921
// Changes made in https://github.com/flutter/flutter/pull/68921
Shortcuts.maybeOf(context);
Shortcuts.maybeOf(context);
Shortcuts.of(context);
Shortcuts.of(context);
Shortcuts.of(error: '');
Actions.find(error: '');
Actions.maybeFind(context);
Actions.maybeFind(context);
Actions.find(context);
Actions.find(context);
Actions.handler(context);
Actions.handler(context);
Actions.handler(context);
Actions.handler(context);
Actions.handler(error: '');
Actions.invoke(error: '');
Actions.maybeInvoke(context);
Actions.maybeInvoke(context);
Actions.invoke(context);
Actions.invoke(context);
// Changes made in https://github.com/flutter/flutter/pull/68925
// Changes made in https://github.com/flutter/flutter/pull/68925
AnimatedList.maybeOf(context);
AnimatedList.maybeOf(context);
AnimatedList.of(context);
AnimatedList.of(context);
AnimatedList.of(error: '');
SliverAnimatedList.of(error: '');
SliverAnimatedList.maybeOf(context);
SliverAnimatedList.maybeOf(context);
SliverAnimatedList.of(context);
SliverAnimatedList.of(context);
// Changes made in https://github.com/flutter/flutter/pull/68905
// Changes made in https://github.com/flutter/flutter/pull/68905
CupertinoDynamicColor.maybeResolve(Color(0), context);
CupertinoDynamicColor.maybeResolve(Color(0), context);
CupertinoDynamicColor.resolve(Color(0), context);
CupertinoDynamicColor.resolve(Color(0), context);
CupertinoDynamicColor.resolve(error: '');
CupertinoDynamicColor.resolveFrom(error: '');
CupertinoDynamicColor.resolveFrom(context);
CupertinoDynamicColor.resolveFrom(context);
CupertinoDynamicColor.resolveFrom(context);
CupertinoDynamicColor.resolveFrom(context);
CupertinoUserInterfaceLevel.maybeOf(context);
CupertinoUserInterfaceLevel.maybeOf(context);
CupertinoUserInterfaceLevel.of(context);
CupertinoUserInterfaceLevel.of(context);
CupertinoUserInterfaceLevel.of(error: '');
// Changes made in https://github.com/flutter/flutter/pull/68736
// Changes made in https://github.com/flutter/flutter/pull/68736
CupertinoTheme.maybeBrightnessOf(context);
CupertinoTheme.maybeBrightnessOf(context);
CupertinoTheme.brightnessOf(context);
CupertinoTheme.brightnessOf(context);
CupertinoTheme.brightnessOf(error: '');
// Changes made in https://github.com/flutter/flutter/pull/68905
// Changes made in https://github.com/flutter/flutter/pull/68905
CupertinoThemeData.resolveFrom(context);
CupertinoThemeData.resolveFrom(context);
CupertinoThemeData.resolveFrom(context);
CupertinoThemeData.resolveFrom(context);
CupertinoThemeData.resolveFrom(error: '');
NoDefaultCupertinoThemeData.resolveFrom(error: '');
NoDefaultCupertinoThemeData.resolveFrom(context);
NoDefaultCupertinoThemeData.resolveFrom(context);
NoDefaultCupertinoThemeData.resolveFrom(context);
NoDefaultCupertinoThemeData.resolveFrom(context);
CupertinoTextThemeData.resolveFrom(context);
CupertinoTextThemeData.resolveFrom(context);
CupertinoTextThemeData.resolveFrom(context);
CupertinoTextThemeData.resolveFrom(context);
CupertinoTextThemeData.resolveFrom(error: '');
// Changes made in https://github.com/flutter/flutter/pull/72043
// Changes made in https://github.com/flutter/flutter/pull/72043
CupertinoTextField(maxLengthEnforcement: MaxLengthEnforcement.enforce);
CupertinoTextField(maxLengthEnforcement: MaxLengthEnforcement.enforce);
CupertinoTextField(maxLengthEnforcement: MaxLengthEnforcement.none);
CupertinoTextField(maxLengthEnforcement: MaxLengthEnforcement.none);
CupertinoTextField(error: '');
CupertinoTextField.borderless(error: '');
CupertinoTextField.borderless(maxLengthEnforcement: MaxLengthEnforcement.enforce);
CupertinoTextField.borderless(maxLengthEnforcement: MaxLengthEnforcement.enforce);
CupertinoTextField.borderless(maxLengthEnforcement: MaxLengthEnforcement.none);
CupertinoTextField.borderless(maxLengthEnforcement: MaxLengthEnforcement.none);
final CupertinoTextField textField;
final CupertinoTextField textField;
...
@@ -129,16 +156,20 @@ void main() {
...
@@ -129,16 +156,20 @@ void main() {
// Changes made in https://github.com/flutter/flutter/pull/59127
// Changes made in https://github.com/flutter/flutter/pull/59127
const BottomNavigationBarItem bottomNavigationBarItem = BottomNavigationBarItem(label: myTitle);
const BottomNavigationBarItem bottomNavigationBarItem = BottomNavigationBarItem(label: myTitle);
const BottomNavigationBarItem bottomNavigationBarItem = BottomNavigationBarItem();
const BottomNavigationBarItem bottomNavigationBarItem = BottomNavigationBarItem(error: '');
bottomNavigationBarItem.label;
bottomNavigationBarItem.label;
// Changes made in https://github.com/flutter/flutter/pull/79160
// Changes made in https://github.com/flutter/flutter/pull/79160
Draggable draggable = Draggable();
Draggable draggable = Draggable();
draggable = Draggable(error: '');
draggable = Draggable(dragAnchorStrategy: childDragAnchorStrategy);
draggable = Draggable(dragAnchorStrategy: childDragAnchorStrategy);
draggable = Draggable(dragAnchorStrategy: pointerDragAnchorStrategy);
draggable = Draggable(dragAnchorStrategy: pointerDragAnchorStrategy);
draggable.dragAnchorStrategy;
draggable.dragAnchorStrategy;
// Changes made in https://github.com/flutter/flutter/pull/79160
// Changes made in https://github.com/flutter/flutter/pull/79160
LongPressDraggable longPressDraggable = LongPressDraggable();
LongPressDraggable longPressDraggable = LongPressDraggable();
longPressDraggable = LongPressDraggable(error: '');
longPressDraggable = LongPressDraggable(dragAnchorStrategy: childDragAnchorStrategy);
longPressDraggable = LongPressDraggable(dragAnchorStrategy: childDragAnchorStrategy);
longPressDraggable = LongPressDraggable(dragAnchorStrategy: pointerDragAnchorStrategy);
longPressDraggable = LongPressDraggable(dragAnchorStrategy: pointerDragAnchorStrategy);
longPressDraggable.dragAnchorStrategy;
longPressDraggable.dragAnchorStrategy;
...
@@ -173,16 +204,20 @@ void main() {
...
@@ -173,16 +204,20 @@ void main() {
ListWheelScrollView listWheelScrollView = ListWheelScrollView();
ListWheelScrollView listWheelScrollView = ListWheelScrollView();
listWheelScrollView = ListWheelScrollView(clipBehavior: Clip.hardEdge);
listWheelScrollView = ListWheelScrollView(clipBehavior: Clip.hardEdge);
listWheelScrollView = ListWheelScrollView(clipBehavior: Clip.none);
listWheelScrollView = ListWheelScrollView(clipBehavior: Clip.none);
listWheelScrollView = ListWheelScrollView(error: '');
listWheelScrollView = ListWheelScrollView.useDelegate();
listWheelScrollView = ListWheelScrollView.useDelegate();
listWheelScrollView = ListWheelScrollView.useDelegate(clipBehavior: Clip.hardEdge);
listWheelScrollView = ListWheelScrollView.useDelegate(clipBehavior: Clip.hardEdge);
listWheelScrollView = ListWheelScrollView.useDelegate(clipBehavior: Clip.none);
listWheelScrollView = ListWheelScrollView.useDelegate(clipBehavior: Clip.none);
listWheelScrollView = ListWheelScrollView.useDelegate(error: '');
listWheelScrollView.clipBehavior;
listWheelScrollView.clipBehavior;
ListWheelViewport listWheelViewport = ListWheelViewport();
ListWheelViewport listWheelViewport = ListWheelViewport();
listWheelViewport = ListWheelViewport(clipBehavior: Clip.hardEdge);
listWheelViewport = ListWheelViewport(clipBehavior: Clip.hardEdge);
listWheelViewport = ListWheelViewport(clipBehavior: Clip.none);
listWheelViewport = ListWheelViewport(clipBehavior: Clip.none);
listWheelViewport = ListWheelViewport(error: '');
listWheelViewport.clipBehavior;
listWheelViewport.clipBehavior;
// Changes made in https://github.com/flutter/flutter/pull/87839
// Changes made in https://github.com/flutter/flutter/pull/87839
final OverscrollIndicatorNotification notification = OverscrollIndicatorNotification(leading: true);
OverscrollIndicatorNotification notification = OverscrollIndicatorNotification(leading: true);
notification = OverscrollIndicatorNotification(error: '');
notification.disallowIndicator();
notification.disallowIndicator();
}
}
packages/flutter/test_fixes/gestures.dart
View file @
f9ff8343
...
@@ -14,40 +14,58 @@ void main() {
...
@@ -14,40 +14,58 @@ void main() {
// Changes made in https://github.com/flutter/flutter/pull/66043
// Changes made in https://github.com/flutter/flutter/pull/66043
VelocityTracker
tracker
=
VelocityTracker
();
VelocityTracker
tracker
=
VelocityTracker
();
tracker
=
VelocityTracker
(
PointerDeviceKind
.
mouse
);
tracker
=
VelocityTracker
(
PointerDeviceKind
.
mouse
);
tracker
=
VelocityTracker
(
error:
''
);
// Changes made in https://github.com/flutter/flutter/pull/81858
// Changes made in https://github.com/flutter/flutter/pull/81858
DragGestureRecognizer
();
DragGestureRecognizer
();
DragGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
DragGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
DragGestureRecognizer
(
error:
''
);
VerticalDragGestureRecognizer
();
VerticalDragGestureRecognizer
();
VerticalDragGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
VerticalDragGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
VerticalDragGestureRecognizer
(
error:
''
);
HorizontalDragGestureRecognizer
();
HorizontalDragGestureRecognizer
();
HorizontalDragGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
HorizontalDragGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
HorizontalDragGestureRecognizer
(
error:
''
);
GestureRecognizer
();
GestureRecognizer
();
GestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
GestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
GestureRecognizer
(
error:
''
);
OneSequenceGestureRecognizer
();
OneSequenceGestureRecognizer
();
OneSequenceGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
OneSequenceGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
OneSequenceGestureRecognizer
(
error:
''
);
PrimaryPointerGestureRecognizer
();
PrimaryPointerGestureRecognizer
();
PrimaryPointerGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
PrimaryPointerGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
PrimaryPointerGestureRecognizer
(
error:
''
);
EagerGestureRecognizer
();
EagerGestureRecognizer
();
EagerGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
EagerGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
EagerGestureRecognizer
(
error:
''
);
ForcePressGestureRecognizer
();
ForcePressGestureRecognizer
();
ForcePressGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
ForcePressGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
ForcePressGestureRecognizer
(
error:
''
);
LongPressGestureRecognizer
();
LongPressGestureRecognizer
();
LongPressGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
LongPressGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
LongPressGestureRecognizer
(
error:
''
);
MultiDragGestureRecognizer
();
MultiDragGestureRecognizer
();
MultiDragGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
MultiDragGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
MultiDragGestureRecognizer
(
error:
''
);
ImmediateMultiDragGestureRecognizer
();
ImmediateMultiDragGestureRecognizer
();
ImmediateMultiDragGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
ImmediateMultiDragGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
ImmediateMultiDragGestureRecognizer
(
error:
''
);
HorizontalMultiDragGestureRecognizer
();
HorizontalMultiDragGestureRecognizer
();
HorizontalMultiDragGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
HorizontalMultiDragGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
HorizontalMultiDragGestureRecognizer
(
error:
''
);
VerticalMultiDragGestureRecognizer
();
VerticalMultiDragGestureRecognizer
();
VerticalMultiDragGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
VerticalMultiDragGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
VerticalMultiDragGestureRecognizer
(
error:
''
);
DelayedMultiDragGestureRecognizer
();
DelayedMultiDragGestureRecognizer
();
DelayedMultiDragGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
DelayedMultiDragGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
DelayedMultiDragGestureRecognizer
(
error:
''
);
DoubleTapGestureRecognizer
();
DoubleTapGestureRecognizer
();
DoubleTapGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
DoubleTapGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
DoubleTapGestureRecognizer
(
error:
''
);
MultiTapGestureRecognizer
();
MultiTapGestureRecognizer
();
MultiTapGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
MultiTapGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
MultiTapGestureRecognizer
(
error:
''
);
ScaleGestureRecognizer
();
ScaleGestureRecognizer
();
ScaleGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
ScaleGestureRecognizer
(
kind:
PointerDeviceKind
.
touch
);
ScaleGestureRecognizer
(
error:
''
);
}
}
packages/flutter/test_fixes/gestures.dart.expect
View file @
f9ff8343
...
@@ -14,40 +14,58 @@ void main() {
...
@@ -14,40 +14,58 @@ void main() {
// Changes made in https://github.com/flutter/flutter/pull/66043
// Changes made in https://github.com/flutter/flutter/pull/66043
VelocityTracker tracker = VelocityTracker.withKind(PointerDeviceKind.touch);
VelocityTracker tracker = VelocityTracker.withKind(PointerDeviceKind.touch);
tracker = VelocityTracker.withKind(PointerDeviceKind.mouse);
tracker = VelocityTracker.withKind(PointerDeviceKind.mouse);
tracker = VelocityTracker.withKind(PointerDeviceKind.touch, error: '');
// Changes made in https://github.com/flutter/flutter/pull/81858
// Changes made in https://github.com/flutter/flutter/pull/81858
DragGestureRecognizer();
DragGestureRecognizer();
DragGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
DragGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
DragGestureRecognizer(error: '');
VerticalDragGestureRecognizer();
VerticalDragGestureRecognizer();
VerticalDragGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
VerticalDragGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
VerticalDragGestureRecognizer(error: '');
HorizontalDragGestureRecognizer();
HorizontalDragGestureRecognizer();
HorizontalDragGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
HorizontalDragGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
HorizontalDragGestureRecognizer(error: '');
GestureRecognizer();
GestureRecognizer();
GestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
GestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
GestureRecognizer(error: '');
OneSequenceGestureRecognizer();
OneSequenceGestureRecognizer();
OneSequenceGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
OneSequenceGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
OneSequenceGestureRecognizer(error: '');
PrimaryPointerGestureRecognizer();
PrimaryPointerGestureRecognizer();
PrimaryPointerGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
PrimaryPointerGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
PrimaryPointerGestureRecognizer(error: '');
EagerGestureRecognizer();
EagerGestureRecognizer();
EagerGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
EagerGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
EagerGestureRecognizer(error: '');
ForcePressGestureRecognizer();
ForcePressGestureRecognizer();
ForcePressGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
ForcePressGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
ForcePressGestureRecognizer(error: '');
LongPressGestureRecognizer();
LongPressGestureRecognizer();
LongPressGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
LongPressGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
LongPressGestureRecognizer(error: '');
MultiDragGestureRecognizer();
MultiDragGestureRecognizer();
MultiDragGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
MultiDragGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
MultiDragGestureRecognizer(error: '');
ImmediateMultiDragGestureRecognizer();
ImmediateMultiDragGestureRecognizer();
ImmediateMultiDragGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
ImmediateMultiDragGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
ImmediateMultiDragGestureRecognizer(error: '');
HorizontalMultiDragGestureRecognizer();
HorizontalMultiDragGestureRecognizer();
HorizontalMultiDragGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
HorizontalMultiDragGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
HorizontalMultiDragGestureRecognizer(error: '');
VerticalMultiDragGestureRecognizer();
VerticalMultiDragGestureRecognizer();
VerticalMultiDragGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
VerticalMultiDragGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
VerticalMultiDragGestureRecognizer(error: '');
DelayedMultiDragGestureRecognizer();
DelayedMultiDragGestureRecognizer();
DelayedMultiDragGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
DelayedMultiDragGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
DelayedMultiDragGestureRecognizer(error: '');
DoubleTapGestureRecognizer();
DoubleTapGestureRecognizer();
DoubleTapGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
DoubleTapGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
DoubleTapGestureRecognizer(error: '');
MultiTapGestureRecognizer();
MultiTapGestureRecognizer();
MultiTapGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
MultiTapGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
MultiTapGestureRecognizer(error: '');
ScaleGestureRecognizer();
ScaleGestureRecognizer();
ScaleGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
ScaleGestureRecognizer(supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch});
ScaleGestureRecognizer(error: '');
}
}
packages/flutter/test_fixes/material.dart
View file @
f9ff8343
This diff is collapsed.
Click to expand it.
packages/flutter/test_fixes/material.dart.expect
View file @
f9ff8343
This diff is collapsed.
Click to expand it.
packages/flutter/test_fixes/rendering.dart
View file @
f9ff8343
...
@@ -9,11 +9,13 @@ void main() {
...
@@ -9,11 +9,13 @@ void main() {
RenderStack
renderStack
=
RenderStack
();
RenderStack
renderStack
=
RenderStack
();
renderStack
=
RenderStack
(
overflow:
Overflow
.
visible
);
renderStack
=
RenderStack
(
overflow:
Overflow
.
visible
);
renderStack
=
RenderStack
(
overflow:
Overflow
.
clip
);
renderStack
=
RenderStack
(
overflow:
Overflow
.
clip
);
renderStack
=
RenderStack
(
error:
''
);
renderStack
.
overflow
;
renderStack
.
overflow
;
// Changes made in https://flutter.dev/docs/release/breaking-changes/clip-behavior
// Changes made in https://flutter.dev/docs/release/breaking-changes/clip-behavior
RenderListWheelViewport
renderListWheelViewport
=
RenderListWheelViewport
();
RenderListWheelViewport
renderListWheelViewport
=
RenderListWheelViewport
();
renderListWheelViewport
=
RenderListWheelViewport
(
clipToSize:
true
);
renderListWheelViewport
=
RenderListWheelViewport
(
clipToSize:
true
);
renderListWheelViewport
=
RenderListWheelViewport
(
clipToSize:
false
);
renderListWheelViewport
=
RenderListWheelViewport
(
clipToSize:
false
);
renderListWheelViewport
=
RenderListWheelViewport
(
error:
''
);
renderListWheelViewport
.
clipToSize
;
renderListWheelViewport
.
clipToSize
;
}
}
packages/flutter/test_fixes/rendering.dart.expect
View file @
f9ff8343
...
@@ -9,11 +9,13 @@ void main() {
...
@@ -9,11 +9,13 @@ void main() {
RenderStack renderStack = RenderStack();
RenderStack renderStack = RenderStack();
renderStack = RenderStack(clipBehavior: Clip.none);
renderStack = RenderStack(clipBehavior: Clip.none);
renderStack = RenderStack(clipBehavior: Clip.hardEdge);
renderStack = RenderStack(clipBehavior: Clip.hardEdge);
renderStack = RenderStack(error: '');
renderStack.clipBehavior;
renderStack.clipBehavior;
// Changes made in https://flutter.dev/docs/release/breaking-changes/clip-behavior
// Changes made in https://flutter.dev/docs/release/breaking-changes/clip-behavior
RenderListWheelViewport renderListWheelViewport = RenderListWheelViewport();
RenderListWheelViewport renderListWheelViewport = RenderListWheelViewport();
renderListWheelViewport = RenderListWheelViewport(clipBehavior: Clip.hardEdge);
renderListWheelViewport = RenderListWheelViewport(clipBehavior: Clip.hardEdge);
renderListWheelViewport = RenderListWheelViewport(clipBehavior: Clip.none);
renderListWheelViewport = RenderListWheelViewport(clipBehavior: Clip.none);
renderListWheelViewport = RenderListWheelViewport(error: '');
renderListWheelViewport.clipBehavior;
renderListWheelViewport.clipBehavior;
}
}
packages/flutter/test_fixes/services.dart
View file @
f9ff8343
...
@@ -12,6 +12,12 @@ void main() {
...
@@ -12,6 +12,12 @@ void main() {
layoutDirection:
TextDirection
.
ltr
,
layoutDirection:
TextDirection
.
ltr
,
);
);
int
viewId
=
surfaceController
.
id
;
int
viewId
=
surfaceController
.
id
;
final
SurfaceAndroidViewController
surfaceController
=
SurfaceAndroidViewController
(
error:
''
,
);
final
TextureAndroidViewController
textureController
=
TextureAndroidViewController
(
error:
''
,
);
final
TextureAndroidViewController
textureController
=
TextureAndroidViewController
(
final
TextureAndroidViewController
textureController
=
TextureAndroidViewController
(
viewId:
10
,
viewId:
10
,
viewType:
'FixTester'
,
viewType:
'FixTester'
,
...
@@ -24,4 +30,5 @@ void main() {
...
@@ -24,4 +30,5 @@ void main() {
await
SystemChrome
.
setEnabledSystemUIOverlays
(<
SystemUiOverlay
>[
SystemUiOverlay
.
bottom
]);
await
SystemChrome
.
setEnabledSystemUIOverlays
(<
SystemUiOverlay
>[
SystemUiOverlay
.
bottom
]);
await
SystemChrome
.
setEnabledSystemUIOverlays
(<
SystemUiOverlay
>[
SystemUiOverlay
.
top
,
SystemUiOverlay
.
bottom
]);
await
SystemChrome
.
setEnabledSystemUIOverlays
(<
SystemUiOverlay
>[
SystemUiOverlay
.
top
,
SystemUiOverlay
.
bottom
]);
await
SystemChrome
.
setEnabledSystemUIOverlays
(<
SystemUiOverlay
>[]);
await
SystemChrome
.
setEnabledSystemUIOverlays
(<
SystemUiOverlay
>[]);
await
SystemChrome
.
setEnabledSystemUIOverlays
(
error:
''
);
}
}
packages/flutter/test_fixes/services.dart.expect
View file @
f9ff8343
...
@@ -12,6 +12,12 @@ void main() {
...
@@ -12,6 +12,12 @@ void main() {
layoutDirection: TextDirection.ltr,
layoutDirection: TextDirection.ltr,
);
);
int viewId = surfaceController.viewId;
int viewId = surfaceController.viewId;
final SurfaceAndroidViewController surfaceController = SurfaceAndroidViewController(
error: '',
);
final TextureAndroidViewController textureController = TextureAndroidViewController(
error: '',
);
final TextureAndroidViewController textureController = TextureAndroidViewController(
final TextureAndroidViewController textureController = TextureAndroidViewController(
viewId: 10,
viewId: 10,
viewType: 'FixTester',
viewType: 'FixTester',
...
@@ -24,4 +30,5 @@ void main() {
...
@@ -24,4 +30,5 @@ void main() {
await SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: <SystemUiOverlay>[SystemUiOverlay.bottom]);
await SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: <SystemUiOverlay>[SystemUiOverlay.bottom]);
await SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: <SystemUiOverlay>[SystemUiOverlay.top, SystemUiOverlay.bottom]);
await SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: <SystemUiOverlay>[SystemUiOverlay.top, SystemUiOverlay.bottom]);
await SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: <SystemUiOverlay>[]);
await SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: <SystemUiOverlay>[]);
await SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, error: '');
}
}
packages/flutter/test_fixes/widgets.dart
View file @
f9ff8343
...
@@ -43,72 +43,92 @@ void main() {
...
@@ -43,72 +43,92 @@ void main() {
// Changes made in https://github.com/flutter/flutter/pull/61648
// Changes made in https://github.com/flutter/flutter/pull/61648
const
Form
form
=
Form
(
autovalidate:
true
);
const
Form
form
=
Form
(
autovalidate:
true
);
const
Form
form
=
Form
(
autovalidate:
false
);
const
Form
form
=
Form
(
autovalidate:
false
);
const
Form
form
=
Form
(
error:
''
);
final
autoMode
=
form
.
autovalidate
;
final
autoMode
=
form
.
autovalidate
;
// Changes made in https://github.com/flutter/flutter/pull/61648
// Changes made in https://github.com/flutter/flutter/pull/61648
const
FormField
formField
=
FormField
(
autovalidate:
true
);
const
FormField
formField
=
FormField
(
autovalidate:
true
);
const
FormField
formField
=
FormField
(
autovalidate:
false
);
const
FormField
formField
=
FormField
(
autovalidate:
false
);
const
FormField
formField
=
FormField
(
error:
''
);
final
autoMode
=
formField
.
autovalidate
;
final
autoMode
=
formField
.
autovalidate
;
// Changes made in https://github.com/flutter/flutter/pull/66305
// Changes made in https://github.com/flutter/flutter/pull/66305
const
Stack
stack
=
Stack
(
overflow:
Overflow
.
visible
);
const
Stack
stack
=
Stack
(
overflow:
Overflow
.
visible
);
const
Stack
stack
=
Stack
(
overflow:
Overflow
.
clip
);
const
Stack
stack
=
Stack
(
overflow:
Overflow
.
clip
);
const
Stack
stack
=
Stack
(
error:
''
);
final
behavior
=
stack
.
overflow
;
final
behavior
=
stack
.
overflow
;
// Changes made in https://github.com/flutter/flutter/pull/68736
// Changes made in https://github.com/flutter/flutter/pull/68736
MediaQuery
.
of
(
context
,
nullOk:
true
);
MediaQuery
.
of
(
context
,
nullOk:
true
);
MediaQuery
.
of
(
context
,
nullOk:
false
);
MediaQuery
.
of
(
context
,
nullOk:
false
);
MediaQuery
.
of
(
error:
''
);
// Changes made in https://github.com/flutter/flutter/pull/70726
// Changes made in https://github.com/flutter/flutter/pull/70726
Navigator
.
of
(
context
,
nullOk:
true
);
Navigator
.
of
(
context
,
nullOk:
true
);
Navigator
.
of
(
context
,
nullOk:
false
);
Navigator
.
of
(
context
,
nullOk:
false
);
Navigator
.
of
(
error:
''
);
// Changes made in https://github.com/flutter/flutter/pull/68910
// Changes made in https://github.com/flutter/flutter/pull/68910
Router
.
of
(
context
,
nullOk:
true
);
Router
.
of
(
context
,
nullOk:
true
);
Router
.
of
(
context
,
nullOk:
false
);
Router
.
of
(
context
,
nullOk:
false
);
Router
.
of
(
error:
''
);
// Changes made in https://github.com/flutter/flutter/pull/68911
// Changes made in https://github.com/flutter/flutter/pull/68911
Localizations
.
localeOf
(
context
,
nullOk:
true
);
Localizations
.
localeOf
(
context
,
nullOk:
true
);
Localizations
.
localeOf
(
context
,
nullOk:
false
);
Localizations
.
localeOf
(
context
,
nullOk:
false
);
Localizations
.
localeOf
(
error:
''
);
// Changes made in https://github.com/flutter/flutter/pull/68917
// Changes made in https://github.com/flutter/flutter/pull/68917
FocusTraversalOrder
.
of
(
context
,
nullOk:
true
);
FocusTraversalOrder
.
of
(
context
,
nullOk:
true
);
FocusTraversalOrder
.
of
(
context
,
nullOk:
false
);
FocusTraversalOrder
.
of
(
context
,
nullOk:
false
);
FocusTraversalOrder
.
of
(
error:
''
);
FocusTraversalGroup
.
of
(
error:
''
);
FocusTraversalGroup
.
of
(
context
,
nullOk:
true
);
FocusTraversalGroup
.
of
(
context
,
nullOk:
true
);
FocusTraversalGroup
.
of
(
context
,
nullOk:
false
);
FocusTraversalGroup
.
of
(
context
,
nullOk:
false
);
Focus
.
of
(
context
,
nullOk:
true
);
Focus
.
of
(
context
,
nullOk:
true
);
Focus
.
of
(
context
,
nullOk:
false
);
Focus
.
of
(
context
,
nullOk:
false
);
Focus
.
of
(
error:
''
);
// Changes made in https://github.com/flutter/flutter/pull/68921
// Changes made in https://github.com/flutter/flutter/pull/68921
Shortcuts
.
of
(
context
,
nullOk:
true
);
Shortcuts
.
of
(
context
,
nullOk:
true
);
Shortcuts
.
of
(
context
,
nullOk:
false
);
Shortcuts
.
of
(
context
,
nullOk:
false
);
Shortcuts
.
of
(
error:
''
);
Actions
.
find
(
error:
''
);
Actions
.
find
(
context
,
nullOk:
true
);
Actions
.
find
(
context
,
nullOk:
true
);
Actions
.
find
(
context
,
nullOk:
false
);
Actions
.
find
(
context
,
nullOk:
false
);
Actions
.
handler
(
context
,
nullOk:
true
);
Actions
.
handler
(
context
,
nullOk:
true
);
Actions
.
handler
(
context
,
nullOk:
false
);
Actions
.
handler
(
context
,
nullOk:
false
);
Actions
.
handler
(
error:
''
);
Actions
.
invoke
(
error:
''
);
Actions
.
invoke
(
context
,
nullOk:
true
);
Actions
.
invoke
(
context
,
nullOk:
true
);
Actions
.
invoke
(
context
,
nullOk:
false
);
Actions
.
invoke
(
context
,
nullOk:
false
);
// Changes made in https://github.com/flutter/flutter/pull/68925
// Changes made in https://github.com/flutter/flutter/pull/68925
AnimatedList
.
of
(
context
,
nullOk:
true
);
AnimatedList
.
of
(
context
,
nullOk:
true
);
AnimatedList
.
of
(
context
,
nullOk:
false
);
AnimatedList
.
of
(
context
,
nullOk:
false
);
AnimatedList
.
of
(
error:
''
);
SliverAnimatedList
.
of
(
error:
''
);
SliverAnimatedList
.
of
(
context
,
nullOk:
true
);
SliverAnimatedList
.
of
(
context
,
nullOk:
true
);
SliverAnimatedList
.
of
(
context
,
nullOk:
false
);
SliverAnimatedList
.
of
(
context
,
nullOk:
false
);
// Changes made in https://github.com/flutter/flutter/pull/59127
// Changes made in https://github.com/flutter/flutter/pull/59127
const
BottomNavigationBarItem
bottomNavigationBarItem
=
BottomNavigationBarItem
(
title:
myTitle
);
const
BottomNavigationBarItem
bottomNavigationBarItem
=
BottomNavigationBarItem
(
title:
myTitle
);
const
BottomNavigationBarItem
bottomNavigationBarItem
=
BottomNavigationBarItem
();
const
BottomNavigationBarItem
bottomNavigationBarItem
=
BottomNavigationBarItem
(
error:
''
);
bottomNavigationBarItem
.
title
;
bottomNavigationBarItem
.
title
;
// Changes made in https://github.com/flutter/flutter/pull/79160
// Changes made in https://github.com/flutter/flutter/pull/79160
Draggable
draggable
=
Draggable
();
Draggable
draggable
=
Draggable
();
draggable
=
Draggable
(
dragAnchor:
DragAnchor
.
child
);
draggable
=
Draggable
(
dragAnchor:
DragAnchor
.
child
);
draggable
=
Draggable
(
dragAnchor:
DragAnchor
.
pointer
);
draggable
=
Draggable
(
dragAnchor:
DragAnchor
.
pointer
);
draggable
=
Draggable
(
error:
''
);
draggable
.
dragAnchor
;
draggable
.
dragAnchor
;
// Changes made in https://github.com/flutter/flutter/pull/79160
// Changes made in https://github.com/flutter/flutter/pull/79160
LongPressDraggable
longPressDraggable
=
LongPressDraggable
();
LongPressDraggable
longPressDraggable
=
LongPressDraggable
();
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
child
);
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
child
);
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
pointer
);
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
pointer
);
longPressDraggable
=
LongPressDraggable
(
error:
''
);
longPressDraggable
.
dragAnchor
;
longPressDraggable
.
dragAnchor
;
// Changes made in https://github.com/flutter/flutter/pull/64254
// Changes made in https://github.com/flutter/flutter/pull/64254
...
@@ -141,16 +161,20 @@ void main() {
...
@@ -141,16 +161,20 @@ void main() {
ListWheelScrollView
listWheelScrollView
=
ListWheelScrollView
();
ListWheelScrollView
listWheelScrollView
=
ListWheelScrollView
();
listWheelScrollView
=
ListWheelScrollView
(
clipToSize:
true
);
listWheelScrollView
=
ListWheelScrollView
(
clipToSize:
true
);
listWheelScrollView
=
ListWheelScrollView
(
clipToSize:
false
);
listWheelScrollView
=
ListWheelScrollView
(
clipToSize:
false
);
listWheelScrollView
=
ListWheelScrollView
(
error:
''
);
listWheelScrollView
=
ListWheelScrollView
.
useDelegate
();
listWheelScrollView
=
ListWheelScrollView
.
useDelegate
();
listWheelScrollView
=
ListWheelScrollView
.
useDelegate
(
clipToSize:
true
);
listWheelScrollView
=
ListWheelScrollView
.
useDelegate
(
clipToSize:
true
);
listWheelScrollView
=
ListWheelScrollView
.
useDelegate
(
clipToSize:
false
);
listWheelScrollView
=
ListWheelScrollView
.
useDelegate
(
clipToSize:
false
);
listWheelScrollView
=
ListWheelScrollView
.
useDelegate
(
error:
''
);
listWheelScrollView
.
clipToSize
;
listWheelScrollView
.
clipToSize
;
ListWheelViewport
listWheelViewport
=
ListWheelViewport
();
ListWheelViewport
listWheelViewport
=
ListWheelViewport
();
listWheelViewport
=
ListWheelViewport
(
clipToSize:
true
);
listWheelViewport
=
ListWheelViewport
(
clipToSize:
true
);
listWheelViewport
=
ListWheelViewport
(
clipToSize:
false
);
listWheelViewport
=
ListWheelViewport
(
clipToSize:
false
);
listWheelViewport
=
ListWheelViewport
(
error:
''
);
listWheelViewport
.
clipToSize
;
listWheelViewport
.
clipToSize
;
// Changes made in https://github.com/flutter/flutter/pull/87839
// Changes made in https://github.com/flutter/flutter/pull/87839
final
OverscrollIndicatorNotification
notification
=
OverscrollIndicatorNotification
(
leading:
true
);
final
OverscrollIndicatorNotification
notification
=
OverscrollIndicatorNotification
(
leading:
true
);
final
OverscrollIndicatorNotification
notification
=
OverscrollIndicatorNotification
(
error:
''
);
notification
.
disallowGlow
();
notification
.
disallowGlow
();
}
}
packages/flutter/test_fixes/widgets.dart.expect
View file @
f9ff8343
...
@@ -43,72 +43,92 @@ void main() {
...
@@ -43,72 +43,92 @@ void main() {
// Changes made in https://github.com/flutter/flutter/pull/61648
// Changes made in https://github.com/flutter/flutter/pull/61648
const Form form = Form(autovalidateMode: AutovalidateMode.always);
const Form form = Form(autovalidateMode: AutovalidateMode.always);
const Form form = Form(autovalidateMode: AutovalidateMode.disabled);
const Form form = Form(autovalidateMode: AutovalidateMode.disabled);
const Form form = Form(error: '');
final autoMode = form.autovalidateMode;
final autoMode = form.autovalidateMode;
// Changes made in https://github.com/flutter/flutter/pull/61648
// Changes made in https://github.com/flutter/flutter/pull/61648
const FormField formField = FormField(autovalidateMode: AutovalidateMode.always);
const FormField formField = FormField(autovalidateMode: AutovalidateMode.always);
const FormField formField = FormField(autovalidateMode: AutovalidateMode.disabled);
const FormField formField = FormField(autovalidateMode: AutovalidateMode.disabled);
const FormField formField = FormField(error: '');
final autoMode = formField.autovalidateMode;
final autoMode = formField.autovalidateMode;
// Changes made in https://github.com/flutter/flutter/pull/66305
// Changes made in https://github.com/flutter/flutter/pull/66305
const Stack stack = Stack(clipBehavior: Clip.none);
const Stack stack = Stack(clipBehavior: Clip.none);
const Stack stack = Stack(clipBehavior: Clip.hardEdge);
const Stack stack = Stack(clipBehavior: Clip.hardEdge);
const Stack stack = Stack(error: '');
final behavior = stack.clipBehavior;
final behavior = stack.clipBehavior;
// Changes made in https://github.com/flutter/flutter/pull/68736
// Changes made in https://github.com/flutter/flutter/pull/68736
MediaQuery.maybeOf(context);
MediaQuery.maybeOf(context);
MediaQuery.of(context);
MediaQuery.of(context);
MediaQuery.of(error: '');
// Changes made in https://github.com/flutter/flutter/pull/70726
// Changes made in https://github.com/flutter/flutter/pull/70726
Navigator.maybeOf(context);
Navigator.maybeOf(context);
Navigator.of(context);
Navigator.of(context);
Navigator.of(error: '');
// Changes made in https://github.com/flutter/flutter/pull/68910
// Changes made in https://github.com/flutter/flutter/pull/68910
Router.maybeOf(context);
Router.maybeOf(context);
Router.of(context);
Router.of(context);
Router.of(error: '');
// Changes made in https://github.com/flutter/flutter/pull/68911
// Changes made in https://github.com/flutter/flutter/pull/68911
Localizations.maybeLocaleOf(context);
Localizations.maybeLocaleOf(context);
Localizations.localeOf(context);
Localizations.localeOf(context);
Localizations.localeOf(error: '');
// Changes made in https://github.com/flutter/flutter/pull/68917
// Changes made in https://github.com/flutter/flutter/pull/68917
FocusTraversalOrder.maybeOf(context);
FocusTraversalOrder.maybeOf(context);
FocusTraversalOrder.of(context);
FocusTraversalOrder.of(context);
FocusTraversalOrder.of(error: '');
FocusTraversalGroup.of(error: '');
FocusTraversalGroup.maybeOf(context);
FocusTraversalGroup.maybeOf(context);
FocusTraversalGroup.of(context);
FocusTraversalGroup.of(context);
Focus.maybeOf(context);
Focus.maybeOf(context);
Focus.of(context);
Focus.of(context);
Focus.of(error: '');
// Changes made in https://github.com/flutter/flutter/pull/68921
// Changes made in https://github.com/flutter/flutter/pull/68921
Shortcuts.maybeOf(context);
Shortcuts.maybeOf(context);
Shortcuts.of(context);
Shortcuts.of(context);
Shortcuts.of(error: '');
Actions.find(error: '');
Actions.maybeFind(context);
Actions.maybeFind(context);
Actions.find(context);
Actions.find(context);
Actions.handler(context);
Actions.handler(context);
Actions.handler(context);
Actions.handler(context);
Actions.handler(error: '');
Actions.invoke(error: '');
Actions.maybeInvoke(context);
Actions.maybeInvoke(context);
Actions.invoke(context);
Actions.invoke(context);
// Changes made in https://github.com/flutter/flutter/pull/68925
// Changes made in https://github.com/flutter/flutter/pull/68925
AnimatedList.maybeOf(context);
AnimatedList.maybeOf(context);
AnimatedList.of(context);
AnimatedList.of(context);
AnimatedList.of(error: '');
SliverAnimatedList.of(error: '');
SliverAnimatedList.maybeOf(context);
SliverAnimatedList.maybeOf(context);
SliverAnimatedList.of(context);
SliverAnimatedList.of(context);
// Changes made in https://github.com/flutter/flutter/pull/59127
// Changes made in https://github.com/flutter/flutter/pull/59127
const BottomNavigationBarItem bottomNavigationBarItem = BottomNavigationBarItem(label: myTitle);
const BottomNavigationBarItem bottomNavigationBarItem = BottomNavigationBarItem(label: myTitle);
const BottomNavigationBarItem bottomNavigationBarItem = BottomNavigationBarItem();
const BottomNavigationBarItem bottomNavigationBarItem = BottomNavigationBarItem(error: '');
bottomNavigationBarItem.label;
bottomNavigationBarItem.label;
// Changes made in https://github.com/flutter/flutter/pull/79160
// Changes made in https://github.com/flutter/flutter/pull/79160
Draggable draggable = Draggable();
Draggable draggable = Draggable();
draggable = Draggable(dragAnchorStrategy: childDragAnchorStrategy);
draggable = Draggable(dragAnchorStrategy: childDragAnchorStrategy);
draggable = Draggable(dragAnchorStrategy: pointerDragAnchorStrategy);
draggable = Draggable(dragAnchorStrategy: pointerDragAnchorStrategy);
draggable = Draggable(error: '');
draggable.dragAnchorStrategy;
draggable.dragAnchorStrategy;
// Changes made in https://github.com/flutter/flutter/pull/79160
// Changes made in https://github.com/flutter/flutter/pull/79160
LongPressDraggable longPressDraggable = LongPressDraggable();
LongPressDraggable longPressDraggable = LongPressDraggable();
longPressDraggable = LongPressDraggable(dragAnchorStrategy: childDragAnchorStrategy);
longPressDraggable = LongPressDraggable(dragAnchorStrategy: childDragAnchorStrategy);
longPressDraggable = LongPressDraggable(dragAnchorStrategy: pointerDragAnchorStrategy);
longPressDraggable = LongPressDraggable(dragAnchorStrategy: pointerDragAnchorStrategy);
longPressDraggable = LongPressDraggable(error: '');
longPressDraggable.dragAnchorStrategy;
longPressDraggable.dragAnchorStrategy;
// Changes made in https://github.com/flutter/flutter/pull/64254
// Changes made in https://github.com/flutter/flutter/pull/64254
...
@@ -141,16 +161,20 @@ void main() {
...
@@ -141,16 +161,20 @@ void main() {
ListWheelScrollView listWheelScrollView = ListWheelScrollView();
ListWheelScrollView listWheelScrollView = ListWheelScrollView();
listWheelScrollView = ListWheelScrollView(clipBehavior: Clip.hardEdge);
listWheelScrollView = ListWheelScrollView(clipBehavior: Clip.hardEdge);
listWheelScrollView = ListWheelScrollView(clipBehavior: Clip.none);
listWheelScrollView = ListWheelScrollView(clipBehavior: Clip.none);
listWheelScrollView = ListWheelScrollView(error: '');
listWheelScrollView = ListWheelScrollView.useDelegate();
listWheelScrollView = ListWheelScrollView.useDelegate();
listWheelScrollView = ListWheelScrollView.useDelegate(clipBehavior: Clip.hardEdge);
listWheelScrollView = ListWheelScrollView.useDelegate(clipBehavior: Clip.hardEdge);
listWheelScrollView = ListWheelScrollView.useDelegate(clipBehavior: Clip.none);
listWheelScrollView = ListWheelScrollView.useDelegate(clipBehavior: Clip.none);
listWheelScrollView = ListWheelScrollView.useDelegate(error: '');
listWheelScrollView.clipBehavior;
listWheelScrollView.clipBehavior;
ListWheelViewport listWheelViewport = ListWheelViewport();
ListWheelViewport listWheelViewport = ListWheelViewport();
listWheelViewport = ListWheelViewport(clipBehavior: Clip.hardEdge);
listWheelViewport = ListWheelViewport(clipBehavior: Clip.hardEdge);
listWheelViewport = ListWheelViewport(clipBehavior: Clip.none);
listWheelViewport = ListWheelViewport(clipBehavior: Clip.none);
listWheelViewport = ListWheelViewport(error: '');
listWheelViewport.clipBehavior;
listWheelViewport.clipBehavior;
// Changes made in https://github.com/flutter/flutter/pull/87839
// Changes made in https://github.com/flutter/flutter/pull/87839
final OverscrollIndicatorNotification notification = OverscrollIndicatorNotification(leading: true);
final OverscrollIndicatorNotification notification = OverscrollIndicatorNotification(leading: true);
final OverscrollIndicatorNotification notification = OverscrollIndicatorNotification(error: '');
notification.disallowIndicator();
notification.disallowIndicator();
}
}
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