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
7b01346c
Unverified
Commit
7b01346c
authored
Oct 11, 2021
by
Ian Hickson
Committed by
GitHub
Oct 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable no_default_cases lint (#91530)
parent
66ff7786
Changes
52
Hide whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
337 additions
and
90 deletions
+337
-90
analysis_options.yaml
analysis_options.yaml
+1
-1
filtered_child_animation.dart
...rks/macrobenchmarks/lib/src/filtered_child_animation.dart
+1
-1
bench_text_layout.dart
...hmarks/macrobenchmarks/lib/src/web/bench_text_layout.dart
+3
-1
devices.dart
dev/devicelab/lib/framework/devices.dart
+0
-2
test_step.dart
dev/integration_tests/channels/lib/src/test_step.dart
+1
-1
logic.dart
...tion_tests/flutter_gallery/lib/demo/calculator/logic.dart
+0
-2
cupertino_navigation_demo.dart
...gallery/lib/demo/cupertino/cupertino_navigation_demo.dart
+1
-1
list_demo.dart
...on_tests/flutter_gallery/lib/demo/material/list_demo.dart
+1
-1
reorderable_list_demo.dart
...tter_gallery/lib/demo/material/reorderable_list_demo.dart
+1
-1
scrollable_tabs_demo.dart
...utter_gallery/lib/demo/material/scrollable_tabs_demo.dart
+0
-2
slider_demo.dart
..._tests/flutter_gallery/lib/demo/material/slider_demo.dart
+3
-3
cut_corners_border.dart
...lery/lib/demo/shrine/supplemental/cut_corners_border.dart
+1
-1
options.dart
...ntegration_tests/flutter_gallery/lib/gallery/options.dart
+4
-7
test_step.dart
...gration_tests/platform_interaction/lib/src/test_step.dart
+1
-1
card_collection.dart
dev/manual_tests/lib/card_collection.dart
+7
-3
isolate.dart
examples/layers/services/isolate.dart
+0
-1
context_menu.dart
packages/flutter/lib/src/cupertino/context_menu.dart
+2
-1
about.dart
packages/flutter/lib/src/material/about.dart
+3
-1
button_bar.dart
packages/flutter/lib/src/material/button_bar.dart
+8
-2
date_picker.dart
packages/flutter/lib/src/material/date_picker.dart
+4
-1
drawer.dart
packages/flutter/lib/src/material/drawer.dart
+2
-1
material.dart
packages/flutter/lib/src/material/material.dart
+3
-1
material_localizations.dart
...ages/flutter/lib/src/material/material_localizations.dart
+5
-2
refresh_indicator.dart
packages/flutter/lib/src/material/refresh_indicator.dart
+10
-3
text_selection.dart
packages/flutter/lib/src/material/text_selection.dart
+1
-1
tooltip.dart
packages/flutter/lib/src/material/tooltip.dart
+9
-3
editable.dart
packages/flutter/lib/src/rendering/editable.dart
+5
-1
paragraph.dart
packages/flutter/lib/src/rendering/paragraph.dart
+5
-1
proxy_box.dart
packages/flutter/lib/src/rendering/proxy_box.dart
+18
-3
focus_manager.dart
packages/flutter/lib/src/widgets/focus_manager.dart
+1
-1
snack_bar_test.dart
packages/flutter/test/material/snack_bar_test.dart
+2
-1
custom_painter_test.dart
packages/flutter/test/widgets/custom_painter_test.dart
+17
-1
semantics_test.dart
packages/flutter/test/widgets/semantics_test.dart
+19
-1
vmservice_driver.dart
packages/flutter_driver/lib/src/driver/vmservice_driver.dart
+0
-2
android_device.dart
packages/flutter_tools/lib/src/android/android_device.dart
+23
-2
artifacts.dart
packages/flutter_tools/lib/src/artifacts.dart
+71
-5
build_info.dart
packages/flutter_tools/lib/src/build_info.dart
+24
-2
common.dart
...es/flutter_tools/lib/src/build_system/targets/common.dart
+13
-1
build_bundle.dart
packages/flutter_tools/lib/src/commands/build_bundle.dart
+12
-1
create_base.dart
packages/flutter_tools/lib/src/commands/create_base.dart
+4
-2
ide_config.dart
packages/flutter_tools/lib/src/commands/ide_config.dart
+5
-2
update_packages.dart
packages/flutter_tools/lib/src/commands/update_packages.dart
+4
-1
doctor_validator.dart
packages/flutter_tools/lib/src/doctor_validator.dart
+0
-2
web_driver_service.dart
packages/flutter_tools/lib/src/drive/web_driver_service.dart
+2
-3
flutter_plugins.dart
packages/flutter_tools/lib/src/flutter_plugins.dart
+0
-2
mac.dart
packages/flutter_tools/lib/src/ios/mac.dart
+0
-2
mdns_discovery.dart
packages/flutter_tools/lib/src/mdns_discovery.dart
+14
-1
resident_runner.dart
packages/flutter_tools/lib/src/resident_runner.dart
+11
-1
flutter_command.dart
packages/flutter_tools/lib/src/runner/flutter_command.dart
+1
-3
sksl_writer.dart
packages/flutter_tools/lib/src/sksl_writer.dart
+11
-1
plugins_test.dart
packages/flutter_tools/test/general.shard/plugins_test.dart
+2
-2
_callback_web.dart
packages/integration_test/lib/_callback_web.dart
+1
-1
No files found.
analysis_options.yaml
View file @
7b01346c
...
@@ -127,7 +127,7 @@ linter:
...
@@ -127,7 +127,7 @@ linter:
# - literal_only_boolean_expressions # too many false positives: https://github.com/dart-lang/linter/issues/453
# - literal_only_boolean_expressions # too many false positives: https://github.com/dart-lang/linter/issues/453
-
missing_whitespace_between_adjacent_strings
-
missing_whitespace_between_adjacent_strings
-
no_adjacent_strings_in_list
-
no_adjacent_strings_in_list
# - no_default_cases # too many false positiv
es
-
no_default_cas
es
-
no_duplicate_case_values
-
no_duplicate_case_values
-
no_logic_in_create_state
-
no_logic_in_create_state
# - no_runtimeType_toString # ok in tests; we enable this only in packages/
# - no_runtimeType_toString # ok in tests; we enable this only in packages/
...
...
dev/benchmarks/macrobenchmarks/lib/src/filtered_child_animation.dart
View file @
7b01346c
...
@@ -64,7 +64,7 @@ class _FilteredChildAnimationPageState extends State<FilteredChildAnimationPage>
...
@@ -64,7 +64,7 @@ class _FilteredChildAnimationPageState extends State<FilteredChildAnimationPage>
case
FilterType
.
opacity
:
return
'Fading Child Animation'
;
case
FilterType
.
opacity
:
return
'Fading Child Animation'
;
case
FilterType
.
rotateTransform
:
return
'Transformed Child Animation'
;
case
FilterType
.
rotateTransform
:
return
'Transformed Child Animation'
;
case
FilterType
.
rotateFilter
:
return
'Matrix Filtered Child Animation'
;
case
FilterType
.
rotateFilter
:
return
'Matrix Filtered Child Animation'
;
default
:
return
'Static Child'
;
case
null
:
return
'Static Child'
;
}
}
}
}
...
...
dev/benchmarks/macrobenchmarks/lib/src/web/bench_text_layout.dart
View file @
7b01346c
...
@@ -70,8 +70,10 @@ void _setTestMode(_TestMode? mode) {
...
@@ -70,8 +70,10 @@ void _setTestMode(_TestMode? mode) {
case
_TestMode
.
useCanvasTextLayout
:
case
_TestMode
.
useCanvasTextLayout
:
useCanvasText
=
true
;
useCanvasText
=
true
;
break
;
break
;
default
:
case
_TestMode
.
useCanvasKit
:
case
null
:
// Keep as null.
// Keep as null.
break
;
}
}
js_util
.
callMethod
(
js_util
.
callMethod
(
html
.
window
,
html
.
window
,
...
...
dev/devicelab/lib/framework/devices.dart
View file @
7b01346c
...
@@ -74,8 +74,6 @@ abstract class DeviceDiscovery {
...
@@ -74,8 +74,6 @@ abstract class DeviceDiscovery {
case
DeviceOperatingSystem
.
fake
:
case
DeviceOperatingSystem
.
fake
:
print
(
'Looking for fake devices! You should not see this in release builds.'
);
print
(
'Looking for fake devices! You should not see this in release builds.'
);
return
FakeDeviceDiscovery
();
return
FakeDeviceDiscovery
();
default
:
throw
DeviceException
(
'Unsupported device operating system:
$deviceOperatingSystem
'
);
}
}
}
}
...
...
dev/integration_tests/channels/lib/src/test_step.dart
View file @
7b01346c
...
@@ -47,7 +47,7 @@ class TestStepResult {
...
@@ -47,7 +47,7 @@ class TestStepResult {
return
snapshot
.
data
!;
return
snapshot
.
data
!;
}
}
return
snapshot
.
error
!
as
TestStepResult
;
return
snapshot
.
error
!
as
TestStepResult
;
default
:
case
ConnectionState
.
active
:
throw
'Unsupported state
${snapshot.connectionState}
'
;
throw
'Unsupported state
${snapshot.connectionState}
'
;
}
}
}
}
...
...
dev/integration_tests/flutter_gallery/lib/demo/calculator/logic.dart
View file @
7b01346c
...
@@ -257,8 +257,6 @@ class CalcExpression {
...
@@ -257,8 +257,6 @@ class CalcExpression {
case
ExpressionState
.
NumberWithPoint
:
case
ExpressionState
.
NumberWithPoint
:
case
ExpressionState
.
Result
:
case
ExpressionState
.
Result
:
return
appendOperation
(
Operation
.
Subtraction
);
return
appendOperation
(
Operation
.
Subtraction
);
default
:
return
null
;
}
}
}
}
...
...
dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_navigation_demo.dart
View file @
7b01346c
...
@@ -608,7 +608,7 @@ class Tab2ConversationBubble extends StatelessWidget {
...
@@ -608,7 +608,7 @@ class Tab2ConversationBubble extends StatelessWidget {
backgroundColor
=
CupertinoTheme
.
of
(
context
).
primaryColor
;
backgroundColor
=
CupertinoTheme
.
of
(
context
).
primaryColor
;
foregroundColor
=
CupertinoColors
.
white
;
foregroundColor
=
CupertinoColors
.
white
;
break
;
break
;
default
:
case
null
:
break
;
break
;
}
}
...
...
dev/integration_tests/flutter_gallery/lib/demo/material/list_demo.dart
View file @
7b01346c
...
@@ -219,7 +219,7 @@ class _ListDemoState extends State<ListDemo> {
...
@@ -219,7 +219,7 @@ class _ListDemoState extends State<ListDemo> {
case
_MaterialListType
.
threeLine
:
case
_MaterialListType
.
threeLine
:
itemTypeText
=
'Three-line'
;
itemTypeText
=
'Three-line'
;
break
;
break
;
default
:
case
null
:
break
;
break
;
}
}
...
...
dev/integration_tests/flutter_gallery/lib/demo/material/reorderable_list_demo.dart
View file @
7b01346c
...
@@ -156,7 +156,7 @@ class _ListDemoState extends State<ReorderableListDemo> {
...
@@ -156,7 +156,7 @@ class _ListDemoState extends State<ReorderableListDemo> {
),
),
);
);
break
;
break
;
default
:
case
null
:
listTile
=
Container
(
listTile
=
Container
(
key:
Key
(
item
.
value
),
key:
Key
(
item
.
value
),
);
);
...
...
dev/integration_tests/flutter_gallery/lib/demo/material/scrollable_tabs_demo.dart
View file @
7b01346c
...
@@ -169,8 +169,6 @@ class ScrollableTabsDemoState extends State<ScrollableTabsDemo> with SingleTicke
...
@@ -169,8 +169,6 @@ class ScrollableTabsDemoState extends State<ScrollableTabsDemo> with SingleTicke
return
Tab
(
icon:
Icon
(
page
.
icon
));
return
Tab
(
icon:
Icon
(
page
.
icon
));
case
TabsDemoStyle
.
textOnly
:
case
TabsDemoStyle
.
textOnly
:
return
Tab
(
text:
page
.
text
);
return
Tab
(
text:
page
.
text
);
default
:
return
Tab
();
}
}
}).
toList
()
}).
toList
()
),
),
...
...
dev/integration_tests/flutter_gallery/lib/demo/material/slider_demo.dart
View file @
7b01346c
...
@@ -90,7 +90,7 @@ class _CustomRangeThumbShape extends RangeSliderThumbShape {
...
@@ -90,7 +90,7 @@ class _CustomRangeThumbShape extends RangeSliderThumbShape {
case
Thumb
.
end
:
case
Thumb
.
end
:
thumbPath
=
_leftTriangle
(
size
,
center
);
thumbPath
=
_leftTriangle
(
size
,
center
);
break
;
break
;
default
:
case
null
:
break
;
break
;
}
}
break
;
break
;
...
@@ -102,11 +102,11 @@ class _CustomRangeThumbShape extends RangeSliderThumbShape {
...
@@ -102,11 +102,11 @@ class _CustomRangeThumbShape extends RangeSliderThumbShape {
case
Thumb
.
end
:
case
Thumb
.
end
:
thumbPath
=
_rightTriangle
(
size
,
center
);
thumbPath
=
_rightTriangle
(
size
,
center
);
break
;
break
;
default
:
case
null
:
break
;
break
;
}
}
break
;
break
;
default
:
case
null
:
break
;
break
;
}
}
canvas
.
drawPath
(
thumbPath
,
Paint
()..
color
=
colorTween
.
evaluate
(
enableAnimation
)!);
canvas
.
drawPath
(
thumbPath
,
Paint
()..
color
=
colorTween
.
evaluate
(
enableAnimation
)!);
...
...
dev/integration_tests/flutter_gallery/lib/demo/shrine/supplemental/cut_corners_border.dart
View file @
7b01346c
...
@@ -116,7 +116,7 @@ class CutCornersBorder extends OutlineInputBorder {
...
@@ -116,7 +116,7 @@ class CutCornersBorder extends OutlineInputBorder {
canvas
.
drawPath
(
path
,
paint
);
canvas
.
drawPath
(
path
,
paint
);
break
;
break
;
}
}
default
:
case
null
:
break
;
break
;
}
}
}
}
...
...
dev/integration_tests/flutter_gallery/lib/gallery/options.dart
View file @
7b01346c
...
@@ -408,8 +408,8 @@ class _PlatformItem extends StatelessWidget {
...
@@ -408,8 +408,8 @@ class _PlatformItem extends StatelessWidget {
final
GalleryOptions
?
options
;
final
GalleryOptions
?
options
;
final
ValueChanged
<
GalleryOptions
>?
onOptionsChanged
;
final
ValueChanged
<
GalleryOptions
>?
onOptionsChanged
;
String
?
_platformLabel
(
TargetPlatform
?
platform
)
{
String
_platformLabel
(
TargetPlatform
platform
)
{
switch
(
platform
)
{
switch
(
platform
)
{
case
TargetPlatform
.
android
:
case
TargetPlatform
.
android
:
return
'Mountain View'
;
return
'Mountain View'
;
case
TargetPlatform
.
fuchsia
:
case
TargetPlatform
.
fuchsia
:
...
@@ -422,9 +422,6 @@ class _PlatformItem extends StatelessWidget {
...
@@ -422,9 +422,6 @@ class _PlatformItem extends StatelessWidget {
return
'Material Desktop (macOS)'
;
return
'Material Desktop (macOS)'
;
case
TargetPlatform
.
windows
:
case
TargetPlatform
.
windows
:
return
'Material Desktop (Windows)'
;
return
'Material Desktop (Windows)'
;
default
:
assert
(
false
);
return
null
;
}
}
}
}
...
@@ -439,7 +436,7 @@ class _PlatformItem extends StatelessWidget {
...
@@ -439,7 +436,7 @@ class _PlatformItem extends StatelessWidget {
children:
<
Widget
>[
children:
<
Widget
>[
const
Text
(
'Platform mechanics'
),
const
Text
(
'Platform mechanics'
),
Text
(
Text
(
_platformLabel
(
options
!.
platform
)!
,
_platformLabel
(
options
!.
platform
!)
,
style:
Theme
.
of
(
context
).
primaryTextTheme
.
bodyText2
,
style:
Theme
.
of
(
context
).
primaryTextTheme
.
bodyText2
,
),
),
],
],
...
@@ -452,7 +449,7 @@ class _PlatformItem extends StatelessWidget {
...
@@ -452,7 +449,7 @@ class _PlatformItem extends StatelessWidget {
return
TargetPlatform
.
values
.
map
((
TargetPlatform
platform
)
{
return
TargetPlatform
.
values
.
map
((
TargetPlatform
platform
)
{
return
PopupMenuItem
<
TargetPlatform
>(
return
PopupMenuItem
<
TargetPlatform
>(
value:
platform
,
value:
platform
,
child:
Text
(
_platformLabel
(
platform
)
!
),
child:
Text
(
_platformLabel
(
platform
)),
);
);
}).
toList
();
}).
toList
();
},
},
...
...
dev/integration_tests/platform_interaction/lib/src/test_step.dart
View file @
7b01346c
...
@@ -28,7 +28,7 @@ class TestStepResult {
...
@@ -28,7 +28,7 @@ class TestStepResult {
final
Object
?
result
=
snapshot
.
error
;
final
Object
?
result
=
snapshot
.
error
;
return
result
!
as
TestStepResult
;
return
result
!
as
TestStepResult
;
}
}
default
:
case
ConnectionState
.
active
:
throw
'Unsupported state
${snapshot.connectionState}
'
;
throw
'Unsupported state
${snapshot.connectionState}
'
;
}
}
}
}
...
...
dev/manual_tests/lib/card_collection.dart
View file @
7b01346c
...
@@ -291,16 +291,20 @@ class CardCollectionState extends State<CardCollection> {
...
@@ -291,16 +291,20 @@ class CardCollectionState extends State<CardCollection> {
case
DismissDirection
.
startToEnd
:
case
DismissDirection
.
startToEnd
:
backgroundMessage
=
'Swipe right to dismiss'
;
backgroundMessage
=
'Swipe right to dismiss'
;
break
;
break
;
default
:
case
DismissDirection
.
vertical
:
case
DismissDirection
.
up
:
case
DismissDirection
.
down
:
case
DismissDirection
.
none
:
backgroundMessage
=
'Unsupported dismissDirection'
;
backgroundMessage
=
'Unsupported dismissDirection'
;
break
;
}
}
// T
ODO(abarth): T
his icon is wrong in RTL.
// This icon is wrong in RTL.
Widget
leftArrowIcon
=
const
Icon
(
Icons
.
arrow_back
,
size:
36.0
);
Widget
leftArrowIcon
=
const
Icon
(
Icons
.
arrow_back
,
size:
36.0
);
if
(
_dismissDirection
==
DismissDirection
.
startToEnd
)
if
(
_dismissDirection
==
DismissDirection
.
startToEnd
)
leftArrowIcon
=
Opacity
(
opacity:
0.1
,
child:
leftArrowIcon
);
leftArrowIcon
=
Opacity
(
opacity:
0.1
,
child:
leftArrowIcon
);
// TODO(abarth):
This icon is wrong in RTL.
//
This icon is wrong in RTL.
Widget
rightArrowIcon
=
const
Icon
(
Icons
.
arrow_forward
,
size:
36.0
);
Widget
rightArrowIcon
=
const
Icon
(
Icons
.
arrow_forward
,
size:
36.0
);
if
(
_dismissDirection
==
DismissDirection
.
endToStart
)
if
(
_dismissDirection
==
DismissDirection
.
endToStart
)
rightArrowIcon
=
Opacity
(
opacity:
0.1
,
child:
rightArrowIcon
);
rightArrowIcon
=
Opacity
(
opacity:
0.1
,
child:
rightArrowIcon
);
...
...
examples/layers/services/isolate.dart
View file @
7b01346c
...
@@ -281,7 +281,6 @@ class IsolateExampleState extends State<StatefulWidget> with SingleTickerProvide
...
@@ -281,7 +281,6 @@ class IsolateExampleState extends State<StatefulWidget> with SingleTickerProvide
case
CalculationState
.
calculating
:
case
CalculationState
.
calculating
:
return
'In Progress'
;
return
'In Progress'
;
case
CalculationState
.
idle
:
case
CalculationState
.
idle
:
default
:
return
'Idle'
;
return
'Idle'
;
}
}
}
}
...
...
packages/flutter/lib/src/cupertino/context_menu.dart
View file @
7b01346c
...
@@ -287,7 +287,8 @@ class _CupertinoContextMenuState extends State<CupertinoContextMenu> with Ticker
...
@@ -287,7 +287,8 @@ class _CupertinoContextMenuState extends State<CupertinoContextMenu> with Ticker
});
});
break
;
break
;
default
:
case
AnimationStatus
.
forward
:
case
AnimationStatus
.
reverse
:
return
;
return
;
}
}
}
}
...
...
packages/flutter/lib/src/material/about.dart
View file @
7b01346c
...
@@ -566,7 +566,9 @@ class _PackagesViewState extends State<_PackagesView> {
...
@@ -566,7 +566,9 @@ class _PackagesViewState extends State<_PackagesView> {
);
);
},
},
);
);
default
:
case
ConnectionState
.
none
:
case
ConnectionState
.
active
:
case
ConnectionState
.
waiting
:
return
Material
(
return
Material
(
color:
Theme
.
of
(
context
).
cardColor
,
color:
Theme
.
of
(
context
).
cardColor
,
child:
Column
(
child:
Column
(
...
...
packages/flutter/lib/src/material/button_bar.dart
View file @
7b01346c
...
@@ -406,7 +406,10 @@ class _RenderButtonBarRow extends RenderFlex {
...
@@ -406,7 +406,10 @@ class _RenderButtonBarRow extends RenderFlex {
case
MainAxisAlignment
.
end
:
case
MainAxisAlignment
.
end
:
childParentData
.
offset
=
Offset
(
constraints
.
maxWidth
-
child
.
size
.
width
,
currentHeight
);
childParentData
.
offset
=
Offset
(
constraints
.
maxWidth
-
child
.
size
.
width
,
currentHeight
);
break
;
break
;
default
:
case
MainAxisAlignment
.
spaceAround
:
case
MainAxisAlignment
.
spaceBetween
:
case
MainAxisAlignment
.
spaceEvenly
:
case
MainAxisAlignment
.
start
:
childParentData
.
offset
=
Offset
(
0
,
currentHeight
);
childParentData
.
offset
=
Offset
(
0
,
currentHeight
);
break
;
break
;
}
}
...
@@ -420,7 +423,10 @@ class _RenderButtonBarRow extends RenderFlex {
...
@@ -420,7 +423,10 @@ class _RenderButtonBarRow extends RenderFlex {
case
MainAxisAlignment
.
end
:
case
MainAxisAlignment
.
end
:
childParentData
.
offset
=
Offset
(
0
,
currentHeight
);
childParentData
.
offset
=
Offset
(
0
,
currentHeight
);
break
;
break
;
default
:
case
MainAxisAlignment
.
spaceAround
:
case
MainAxisAlignment
.
spaceBetween
:
case
MainAxisAlignment
.
spaceEvenly
:
case
MainAxisAlignment
.
start
:
childParentData
.
offset
=
Offset
(
constraints
.
maxWidth
-
child
.
size
.
width
,
currentHeight
);
childParentData
.
offset
=
Offset
(
constraints
.
maxWidth
-
child
.
size
.
width
,
currentHeight
);
break
;
break
;
}
}
...
...
packages/flutter/lib/src/material/date_picker.dart
View file @
7b01346c
...
@@ -1654,7 +1654,10 @@ class _CalendarDateRangePickerState extends State<_CalendarDateRangePicker> {
...
@@ -1654,7 +1654,10 @@ class _CalendarDateRangePickerState extends State<_CalendarDateRangePicker> {
case
TargetPlatform
.
fuchsia
:
case
TargetPlatform
.
fuchsia
:
HapticFeedback
.
vibrate
();
HapticFeedback
.
vibrate
();
break
;
break
;
default
:
case
TargetPlatform
.
iOS
:
case
TargetPlatform
.
linux
:
case
TargetPlatform
.
macOS
:
case
TargetPlatform
.
windows
:
break
;
break
;
}
}
}
}
...
...
packages/flutter/lib/src/material/drawer.dart
View file @
7b01346c
...
@@ -374,7 +374,8 @@ class DrawerControllerState extends State<DrawerController> with SingleTickerPro
...
@@ -374,7 +374,8 @@ class DrawerControllerState extends State<DrawerController> with SingleTickerPro
case
AnimationStatus
.
dismissed
:
case
AnimationStatus
.
dismissed
:
_controller
.
value
=
widget
.
isDrawerOpen
?
1.0
:
0.0
;
_controller
.
value
=
widget
.
isDrawerOpen
?
1.0
:
0.0
;
break
;
break
;
default
:
case
AnimationStatus
.
forward
:
case
AnimationStatus
.
reverse
:
break
;
break
;
}
}
}
}
...
...
packages/flutter/lib/src/material/material.dart
View file @
7b01346c
...
@@ -350,7 +350,9 @@ class _MaterialState extends State<Material> with TickerProviderStateMixin {
...
@@ -350,7 +350,9 @@ class _MaterialState extends State<Material> with TickerProviderStateMixin {
case
MaterialType
.
card
:
case
MaterialType
.
card
:
color
=
theme
.
cardColor
;
color
=
theme
.
cardColor
;
break
;
break
;
default
:
case
MaterialType
.
button
:
case
MaterialType
.
circle
:
case
MaterialType
.
transparency
:
break
;
break
;
}
}
}
}
...
...
packages/flutter/lib/src/material/material_localizations.dart
View file @
7b01346c
...
@@ -636,8 +636,11 @@ class DefaultMaterialLocalizations implements MaterialLocalizations {
...
@@ -636,8 +636,11 @@ class DefaultMaterialLocalizations implements MaterialLocalizations {
return
formatDecimal
(
timeOfDay
.
hourOfPeriod
==
0
?
12
:
timeOfDay
.
hourOfPeriod
);
return
formatDecimal
(
timeOfDay
.
hourOfPeriod
==
0
?
12
:
timeOfDay
.
hourOfPeriod
);
case
TimeOfDayFormat
.
HH_colon_mm
:
case
TimeOfDayFormat
.
HH_colon_mm
:
return
_formatTwoDigitZeroPad
(
timeOfDay
.
hour
);
return
_formatTwoDigitZeroPad
(
timeOfDay
.
hour
);
default
:
case
TimeOfDayFormat
.
a_space_h_colon_mm
:
throw
AssertionError
(
'
$runtimeType
does not support
$format
.'
);
case
TimeOfDayFormat
.
frenchCanadian
:
case
TimeOfDayFormat
.
H_colon_mm
:
case
TimeOfDayFormat
.
HH_dot_mm
:
throw
AssertionError
(
'
$runtimeType
does not support
$format
.'
);
}
}
}
}
...
...
packages/flutter/lib/src/material/refresh_indicator.dart
View file @
7b01346c
...
@@ -346,7 +346,11 @@ class RefreshIndicatorState extends State<RefreshIndicator> with TickerProviderS
...
@@ -346,7 +346,11 @@ class RefreshIndicatorState extends State<RefreshIndicator> with TickerProviderS
case
_RefreshIndicatorMode
.
drag
:
case
_RefreshIndicatorMode
.
drag
:
_dismiss
(
_RefreshIndicatorMode
.
canceled
);
_dismiss
(
_RefreshIndicatorMode
.
canceled
);
break
;
break
;
default
:
case
_RefreshIndicatorMode
.
canceled
:
case
_RefreshIndicatorMode
.
done
:
case
_RefreshIndicatorMode
.
refresh
:
case
_RefreshIndicatorMode
.
snap
:
case
null
:
// do nothing
// do nothing
break
;
break
;
}
}
...
@@ -407,14 +411,17 @@ class RefreshIndicatorState extends State<RefreshIndicator> with TickerProviderS
...
@@ -407,14 +411,17 @@ class RefreshIndicatorState extends State<RefreshIndicator> with TickerProviderS
setState
(()
{
setState
(()
{
_mode
=
newMode
;
_mode
=
newMode
;
});
});
switch
(
_mode
)
{
switch
(
_mode
!
)
{
case
_RefreshIndicatorMode
.
done
:
case
_RefreshIndicatorMode
.
done
:
await
_scaleController
.
animateTo
(
1.0
,
duration:
_kIndicatorScaleDuration
);
await
_scaleController
.
animateTo
(
1.0
,
duration:
_kIndicatorScaleDuration
);
break
;
break
;
case
_RefreshIndicatorMode
.
canceled
:
case
_RefreshIndicatorMode
.
canceled
:
await
_positionController
.
animateTo
(
0.0
,
duration:
_kIndicatorScaleDuration
);
await
_positionController
.
animateTo
(
0.0
,
duration:
_kIndicatorScaleDuration
);
break
;
break
;
default
:
case
_RefreshIndicatorMode
.
armed
:
case
_RefreshIndicatorMode
.
drag
:
case
_RefreshIndicatorMode
.
refresh
:
case
_RefreshIndicatorMode
.
snap
:
assert
(
false
);
assert
(
false
);
}
}
if
(
mounted
&&
_mode
==
newMode
)
{
if
(
mounted
&&
_mode
==
newMode
)
{
...
...
packages/flutter/lib/src/material/text_selection.dart
View file @
7b01346c
...
@@ -100,7 +100,7 @@ class MaterialTextSelectionControls extends TextSelectionControls {
...
@@ -100,7 +100,7 @@ class MaterialTextSelectionControls extends TextSelectionControls {
return
const
Offset
(
_kHandleSize
,
0
);
return
const
Offset
(
_kHandleSize
,
0
);
case
TextSelectionHandleType
.
right
:
case
TextSelectionHandleType
.
right
:
return
Offset
.
zero
;
return
Offset
.
zero
;
default
:
case
TextSelectionHandleType
.
collapsed
:
return
const
Offset
(
_kHandleSize
/
2
,
-
4
);
return
const
Offset
(
_kHandleSize
/
2
,
-
4
);
}
}
}
}
...
...
packages/flutter/lib/src/material/tooltip.dart
View file @
7b01346c
...
@@ -360,7 +360,9 @@ class _TooltipState extends State<Tooltip> with SingleTickerProviderStateMixin {
...
@@ -360,7 +360,9 @@ class _TooltipState extends State<Tooltip> with SingleTickerProviderStateMixin {
case
TargetPlatform
.
linux
:
case
TargetPlatform
.
linux
:
case
TargetPlatform
.
windows
:
case
TargetPlatform
.
windows
:
return
24.0
;
return
24.0
;
default
:
case
TargetPlatform
.
android
:
case
TargetPlatform
.
fuchsia
:
case
TargetPlatform
.
iOS
:
return
32.0
;
return
32.0
;
}
}
}
}
...
@@ -372,7 +374,9 @@ class _TooltipState extends State<Tooltip> with SingleTickerProviderStateMixin {
...
@@ -372,7 +374,9 @@ class _TooltipState extends State<Tooltip> with SingleTickerProviderStateMixin {
case
TargetPlatform
.
linux
:
case
TargetPlatform
.
linux
:
case
TargetPlatform
.
windows
:
case
TargetPlatform
.
windows
:
return
const
EdgeInsets
.
symmetric
(
horizontal:
8.0
);
return
const
EdgeInsets
.
symmetric
(
horizontal:
8.0
);
default
:
case
TargetPlatform
.
android
:
case
TargetPlatform
.
fuchsia
:
case
TargetPlatform
.
iOS
:
return
const
EdgeInsets
.
symmetric
(
horizontal:
16.0
);
return
const
EdgeInsets
.
symmetric
(
horizontal:
16.0
);
}
}
}
}
...
@@ -384,7 +388,9 @@ class _TooltipState extends State<Tooltip> with SingleTickerProviderStateMixin {
...
@@ -384,7 +388,9 @@ class _TooltipState extends State<Tooltip> with SingleTickerProviderStateMixin {
case
TargetPlatform
.
linux
:
case
TargetPlatform
.
linux
:
case
TargetPlatform
.
windows
:
case
TargetPlatform
.
windows
:
return
10.0
;
return
10.0
;
default
:
case
TargetPlatform
.
android
:
case
TargetPlatform
.
fuchsia
:
case
TargetPlatform
.
iOS
:
return
14.0
;
return
14.0
;
}
}
}
}
...
...
packages/flutter/lib/src/rendering/editable.dart
View file @
7b01346c
...
@@ -1990,7 +1990,11 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin,
...
@@ -1990,7 +1990,11 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin,
_placeholderSpans
[
childIndex
].
baseline
!,
_placeholderSpans
[
childIndex
].
baseline
!,
);
);
break
;
break
;
default
:
case
ui
.
PlaceholderAlignment
.
aboveBaseline
:
case
ui
.
PlaceholderAlignment
.
belowBaseline
:
case
ui
.
PlaceholderAlignment
.
bottom
:
case
ui
.
PlaceholderAlignment
.
middle
:
case
ui
.
PlaceholderAlignment
.
top
:
baselineOffset
=
null
;
baselineOffset
=
null
;
break
;
break
;
}
}
...
...
packages/flutter/lib/src/rendering/paragraph.dart
View file @
7b01346c
...
@@ -554,7 +554,11 @@ class RenderParagraph extends RenderBox
...
@@ -554,7 +554,11 @@ class RenderParagraph extends RenderBox
_placeholderSpans
[
childIndex
].
baseline
!,
_placeholderSpans
[
childIndex
].
baseline
!,
);
);
break
;
break
;
default
:
case
ui
.
PlaceholderAlignment
.
aboveBaseline
:
case
ui
.
PlaceholderAlignment
.
belowBaseline
:
case
ui
.
PlaceholderAlignment
.
bottom
:
case
ui
.
PlaceholderAlignment
.
middle
:
case
ui
.
PlaceholderAlignment
.
top
:
baselineOffset
=
null
;
baselineOffset
=
null
;
break
;
break
;
}
}
...
...
packages/flutter/lib/src/rendering/proxy_box.dart
View file @
7b01346c
...
@@ -2466,7 +2466,12 @@ class RenderFittedBox extends RenderProxyBox {
...
@@ -2466,7 +2466,12 @@ class RenderFittedBox extends RenderProxyBox {
switch
(
fit
)
{
switch
(
fit
)
{
case
BoxFit
.
scaleDown
:
case
BoxFit
.
scaleDown
:
return
true
;
return
true
;
default
:
case
BoxFit
.
contain
:
case
BoxFit
.
cover
:
case
BoxFit
.
fill
:
case
BoxFit
.
fitHeight
:
case
BoxFit
.
fitWidth
:
case
BoxFit
.
none
:
return
false
;
return
false
;
}
}
}
}
...
@@ -2551,7 +2556,12 @@ class RenderFittedBox extends RenderProxyBox {
...
@@ -2551,7 +2556,12 @@ class RenderFittedBox extends RenderProxyBox {
final
BoxConstraints
sizeConstraints
=
constraints
.
loosen
();
final
BoxConstraints
sizeConstraints
=
constraints
.
loosen
();
final
Size
unconstrainedSize
=
sizeConstraints
.
constrainSizeAndAttemptToPreserveAspectRatio
(
childSize
);
final
Size
unconstrainedSize
=
sizeConstraints
.
constrainSizeAndAttemptToPreserveAspectRatio
(
childSize
);
return
constraints
.
constrain
(
unconstrainedSize
);
return
constraints
.
constrain
(
unconstrainedSize
);
default
:
case
BoxFit
.
contain
:
case
BoxFit
.
cover
:
case
BoxFit
.
fill
:
case
BoxFit
.
fitHeight
:
case
BoxFit
.
fitWidth
:
case
BoxFit
.
none
:
return
constraints
.
constrainSizeAndAttemptToPreserveAspectRatio
(
childSize
);
return
constraints
.
constrainSizeAndAttemptToPreserveAspectRatio
(
childSize
);
}
}
}
else
{
}
else
{
...
@@ -2569,7 +2579,12 @@ class RenderFittedBox extends RenderProxyBox {
...
@@ -2569,7 +2579,12 @@ class RenderFittedBox extends RenderProxyBox {
final
Size
unconstrainedSize
=
sizeConstraints
.
constrainSizeAndAttemptToPreserveAspectRatio
(
child
!.
size
);
final
Size
unconstrainedSize
=
sizeConstraints
.
constrainSizeAndAttemptToPreserveAspectRatio
(
child
!.
size
);
size
=
constraints
.
constrain
(
unconstrainedSize
);
size
=
constraints
.
constrain
(
unconstrainedSize
);
break
;
break
;
default
:
case
BoxFit
.
contain
:
case
BoxFit
.
cover
:
case
BoxFit
.
fill
:
case
BoxFit
.
fitHeight
:
case
BoxFit
.
fitWidth
:
case
BoxFit
.
none
:
size
=
constraints
.
constrainSizeAndAttemptToPreserveAspectRatio
(
child
!.
size
);
size
=
constraints
.
constrainSizeAndAttemptToPreserveAspectRatio
(
child
!.
size
);
break
;
break
;
}
}
...
...
packages/flutter/lib/src/widgets/focus_manager.dart
View file @
7b01346c
...
@@ -69,7 +69,7 @@ KeyEventResult combineKeyEventResults(Iterable<KeyEventResult> results) {
...
@@ -69,7 +69,7 @@ KeyEventResult combineKeyEventResults(Iterable<KeyEventResult> results) {
case
KeyEventResult
.
skipRemainingHandlers
:
case
KeyEventResult
.
skipRemainingHandlers
:
hasSkipRemainingHandlers
=
true
;
hasSkipRemainingHandlers
=
true
;
break
;
break
;
default
:
case
KeyEventResult
.
ignored
:
break
;
break
;
}
}
}
}
...
...
packages/flutter/test/material/snack_bar_test.dart
View file @
7b01346c
...
@@ -2593,7 +2593,8 @@ Map<DismissDirection, List<Offset>> _getDragGesturesOfDismissDirections(double s
...
@@ -2593,7 +2593,8 @@ Map<DismissDirection, List<Offset>> _getDragGesturesOfDismissDirections(double s
Offset
(-
scaffoldWidth
,
0.0
),
// drag to left gesture
Offset
(-
scaffoldWidth
,
0.0
),
// drag to left gesture
];
];
break
;
break
;
default
:
case
DismissDirection
.
none
:
break
;
}
}
}
}
...
...
packages/flutter/test/widgets/custom_painter_test.dart
View file @
7b01346c
...
@@ -389,8 +389,24 @@ void _defineTests() {
...
@@ -389,8 +389,24 @@ void _defineTests() {
case
SemanticsAction
.
setText
:
case
SemanticsAction
.
setText
:
semanticsOwner
.
performAction
(
expectedId
,
action
,
'text'
);
semanticsOwner
.
performAction
(
expectedId
,
action
,
'text'
);
break
;
break
;
default
:
case
SemanticsAction
.
copy
:
case
SemanticsAction
.
customAction
:
case
SemanticsAction
.
cut
:
case
SemanticsAction
.
decrease
:
case
SemanticsAction
.
didGainAccessibilityFocus
:
case
SemanticsAction
.
didLoseAccessibilityFocus
:
case
SemanticsAction
.
dismiss
:
case
SemanticsAction
.
increase
:
case
SemanticsAction
.
longPress
:
case
SemanticsAction
.
paste
:
case
SemanticsAction
.
scrollDown
:
case
SemanticsAction
.
scrollLeft
:
case
SemanticsAction
.
scrollRight
:
case
SemanticsAction
.
scrollUp
:
case
SemanticsAction
.
showOnScreen
:
case
SemanticsAction
.
tap
:
semanticsOwner
.
performAction
(
expectedId
,
action
);
semanticsOwner
.
performAction
(
expectedId
,
action
);
break
;
}
}
expect
(
performedActions
.
length
,
expectedLength
);
expect
(
performedActions
.
length
,
expectedLength
);
expect
(
performedActions
.
last
,
action
);
expect
(
performedActions
.
last
,
action
);
...
...
packages/flutter/test/widgets/semantics_test.dart
View file @
7b01346c
...
@@ -493,8 +493,26 @@ void main() {
...
@@ -493,8 +493,26 @@ void main() {
case
SemanticsAction
.
setText
:
case
SemanticsAction
.
setText
:
semanticsOwner
.
performAction
(
expectedId
,
action
,
'text'
);
semanticsOwner
.
performAction
(
expectedId
,
action
,
'text'
);
break
;
break
;
default
:
case
SemanticsAction
.
copy
:
case
SemanticsAction
.
customAction
:
case
SemanticsAction
.
cut
:
case
SemanticsAction
.
decrease
:
case
SemanticsAction
.
didGainAccessibilityFocus
:
case
SemanticsAction
.
didLoseAccessibilityFocus
:
case
SemanticsAction
.
dismiss
:
case
SemanticsAction
.
increase
:
case
SemanticsAction
.
longPress
:
case
SemanticsAction
.
moveCursorBackwardByWord
:
case
SemanticsAction
.
moveCursorForwardByWord
:
case
SemanticsAction
.
paste
:
case
SemanticsAction
.
scrollDown
:
case
SemanticsAction
.
scrollLeft
:
case
SemanticsAction
.
scrollRight
:
case
SemanticsAction
.
scrollUp
:
case
SemanticsAction
.
showOnScreen
:
case
SemanticsAction
.
tap
:
semanticsOwner
.
performAction
(
expectedId
,
action
);
semanticsOwner
.
performAction
(
expectedId
,
action
);
break
;
}
}
expect
(
performedActions
.
length
,
expectedLength
);
expect
(
performedActions
.
length
,
expectedLength
);
expect
(
performedActions
.
last
,
action
);
expect
(
performedActions
.
last
,
action
);
...
...
packages/flutter_driver/lib/src/driver/vmservice_driver.dart
View file @
7b01346c
...
@@ -593,8 +593,6 @@ List<String> _timelineStreamsToString(List<TimelineStream> streams) {
...
@@ -593,8 +593,6 @@ List<String> _timelineStreamsToString(List<TimelineStream> streams) {
case
TimelineStream
.
gc
:
return
'GC'
;
case
TimelineStream
.
gc
:
return
'GC'
;
case
TimelineStream
.
isolate
:
return
'Isolate'
;
case
TimelineStream
.
isolate
:
return
'Isolate'
;
case
TimelineStream
.
vm
:
return
'VM'
;
case
TimelineStream
.
vm
:
return
'VM'
;
default
:
throw
'Unknown timeline stream
$stream
'
;
}
}
}).
toList
();
}).
toList
();
}
}
...
...
packages/flutter_tools/lib/src/android/android_device.dart
View file @
7b01346c
...
@@ -236,9 +236,20 @@ class AndroidDevice extends Device {
...
@@ -236,9 +236,20 @@ class AndroidDevice extends Device {
return
buildMode
!=
BuildMode
.
jitRelease
;
return
buildMode
!=
BuildMode
.
jitRelease
;
case
TargetPlatform
.
android_x86
:
case
TargetPlatform
.
android_x86
:
return
buildMode
==
BuildMode
.
debug
;
return
buildMode
==
BuildMode
.
debug
;
default
:
case
TargetPlatform
.
android
:
case
TargetPlatform
.
darwin
:
case
TargetPlatform
.
fuchsia_arm64
:
case
TargetPlatform
.
fuchsia_x64
:
case
TargetPlatform
.
ios
:
case
TargetPlatform
.
linux_arm64
:
case
TargetPlatform
.
linux_x64
:
case
TargetPlatform
.
tester
:
case
TargetPlatform
.
web_javascript
:
case
TargetPlatform
.
windows_uwp_x64
:
case
TargetPlatform
.
windows_x64
:
throw
UnsupportedError
(
'Invalid target platform for Android'
);
throw
UnsupportedError
(
'Invalid target platform for Android'
);
}
}
throw
null
;
// dead code, remove after null migration
}
}
@override
@override
...
@@ -560,7 +571,17 @@ class AndroidDevice extends Device {
...
@@ -560,7 +571,17 @@ class AndroidDevice extends Device {
case
TargetPlatform
.
android_x86
:
case
TargetPlatform
.
android_x86
:
androidArch
=
AndroidArch
.
x86
;
androidArch
=
AndroidArch
.
x86
;
break
;
break
;
default
:
case
TargetPlatform
.
android
:
case
TargetPlatform
.
darwin
:
case
TargetPlatform
.
fuchsia_arm64
:
case
TargetPlatform
.
fuchsia_x64
:
case
TargetPlatform
.
ios
:
case
TargetPlatform
.
linux_arm64
:
case
TargetPlatform
.
linux_x64
:
case
TargetPlatform
.
tester
:
case
TargetPlatform
.
web_javascript
:
case
TargetPlatform
.
windows_uwp_x64
:
case
TargetPlatform
.
windows_x64
:
_logger
.
printError
(
'Android platforms are only supported.'
);
_logger
.
printError
(
'Android platforms are only supported.'
);
return
LaunchResult
.
failed
();
return
LaunchResult
.
failed
();
}
}
...
...
packages/flutter_tools/lib/src/artifacts.dart
View file @
7b01346c
...
@@ -420,10 +420,12 @@ class CachedArtifacts implements Artifacts {
...
@@ -420,10 +420,12 @@ class CachedArtifacts implements Artifacts {
})
{
})
{
platform
=
_mapTargetPlatform
(
platform
);
platform
=
_mapTargetPlatform
(
platform
);
switch
(
platform
)
{
switch
(
platform
)
{
case
TargetPlatform
.
android
:
case
TargetPlatform
.
android_arm
:
case
TargetPlatform
.
android_arm
:
case
TargetPlatform
.
android_arm64
:
case
TargetPlatform
.
android_arm64
:
case
TargetPlatform
.
android_x64
:
case
TargetPlatform
.
android_x64
:
case
TargetPlatform
.
android_x86
:
case
TargetPlatform
.
android_x86
:
assert
(
platform
!=
TargetPlatform
.
android
);
return
_getAndroidArtifactPath
(
artifact
,
platform
!,
mode
!);
return
_getAndroidArtifactPath
(
artifact
,
platform
!,
mode
!);
case
TargetPlatform
.
ios
:
case
TargetPlatform
.
ios
:
return
_getIosArtifactPath
(
artifact
,
platform
!,
mode
,
environmentType
);
return
_getIosArtifactPath
(
artifact
,
platform
!,
mode
,
environmentType
);
...
@@ -438,7 +440,7 @@ class CachedArtifacts implements Artifacts {
...
@@ -438,7 +440,7 @@ class CachedArtifacts implements Artifacts {
return
_getFuchsiaArtifactPath
(
artifact
,
platform
!,
mode
!);
return
_getFuchsiaArtifactPath
(
artifact
,
platform
!,
mode
!);
case
TargetPlatform
.
tester
:
case
TargetPlatform
.
tester
:
case
TargetPlatform
.
web_javascript
:
case
TargetPlatform
.
web_javascript
:
default
:
// could be null, but that can't be specified as a case.
case
null
:
return
_getHostArtifactPath
(
artifact
,
platform
??
_currentHostPlatform
(
_platform
,
_operatingSystemUtils
),
mode
);
return
_getHostArtifactPath
(
artifact
,
platform
??
_currentHostPlatform
(
_platform
,
_operatingSystemUtils
),
mode
);
}
}
}
}
...
@@ -468,7 +470,29 @@ class CachedArtifacts implements Artifacts {
...
@@ -468,7 +470,29 @@ class CachedArtifacts implements Artifacts {
assert
(
mode
!=
BuildMode
.
debug
,
'Artifact
$artifact
only available in non-debug mode.'
);
assert
(
mode
!=
BuildMode
.
debug
,
'Artifact
$artifact
only available in non-debug mode.'
);
final
String
hostPlatform
=
getNameForHostPlatform
(
getCurrentHostPlatform
());
final
String
hostPlatform
=
getNameForHostPlatform
(
getCurrentHostPlatform
());
return
_fileSystem
.
path
.
join
(
engineDir
,
hostPlatform
,
_artifactToFileName
(
artifact
));
return
_fileSystem
.
path
.
join
(
engineDir
,
hostPlatform
,
_artifactToFileName
(
artifact
));
default
:
case
Artifact
.
constFinder
:
case
Artifact
.
flutterFramework
:
case
Artifact
.
flutterMacOSFramework
:
case
Artifact
.
flutterMacOSPodspec
:
case
Artifact
.
flutterPatchedSdkPath
:
case
Artifact
.
flutterTester
:
case
Artifact
.
flutterXcframework
:
case
Artifact
.
fontSubset
:
case
Artifact
.
fuchsiaFlutterRunner
:
case
Artifact
.
fuchsiaKernelCompiler
:
case
Artifact
.
icuData
:
case
Artifact
.
isolateSnapshotData
:
case
Artifact
.
linuxDesktopPath
:
case
Artifact
.
linuxHeaders
:
case
Artifact
.
platformKernelDill
:
case
Artifact
.
platformLibrariesJson
:
case
Artifact
.
skyEnginePath
:
case
Artifact
.
uwptool
:
case
Artifact
.
vmSnapshotData
:
case
Artifact
.
windowsCppClientWrapper
:
case
Artifact
.
windowsDesktopPath
:
case
Artifact
.
windowsUwpCppClientWrapper
:
case
Artifact
.
windowsUwpDesktopPath
:
return
_getHostArtifactPath
(
artifact
,
platform
,
mode
);
return
_getHostArtifactPath
(
artifact
,
platform
,
mode
);
}
}
}
}
...
@@ -484,7 +508,27 @@ class CachedArtifacts implements Artifacts {
...
@@ -484,7 +508,27 @@ class CachedArtifacts implements Artifacts {
case
Artifact
.
flutterFramework
:
case
Artifact
.
flutterFramework
:
final
String
engineDir
=
_getEngineArtifactsPath
(
platform
,
mode
)!;
final
String
engineDir
=
_getEngineArtifactsPath
(
platform
,
mode
)!;
return
_getIosEngineArtifactPath
(
engineDir
,
environmentType
,
_fileSystem
);
return
_getIosEngineArtifactPath
(
engineDir
,
environmentType
,
_fileSystem
);
default
:
case
Artifact
.
constFinder
:
case
Artifact
.
flutterMacOSFramework
:
case
Artifact
.
flutterMacOSPodspec
:
case
Artifact
.
flutterPatchedSdkPath
:
case
Artifact
.
flutterTester
:
case
Artifact
.
fontSubset
:
case
Artifact
.
fuchsiaFlutterRunner
:
case
Artifact
.
fuchsiaKernelCompiler
:
case
Artifact
.
icuData
:
case
Artifact
.
isolateSnapshotData
:
case
Artifact
.
linuxDesktopPath
:
case
Artifact
.
linuxHeaders
:
case
Artifact
.
platformKernelDill
:
case
Artifact
.
platformLibrariesJson
:
case
Artifact
.
skyEnginePath
:
case
Artifact
.
uwptool
:
case
Artifact
.
vmSnapshotData
:
case
Artifact
.
windowsCppClientWrapper
:
case
Artifact
.
windowsDesktopPath
:
case
Artifact
.
windowsUwpCppClientWrapper
:
case
Artifact
.
windowsUwpDesktopPath
:
return
_getHostArtifactPath
(
artifact
,
platform
,
mode
);
return
_getHostArtifactPath
(
artifact
,
platform
,
mode
);
}
}
}
}
...
@@ -513,7 +557,26 @@ class CachedArtifacts implements Artifacts {
...
@@ -513,7 +557,26 @@ class CachedArtifacts implements Artifacts {
case
Artifact
.
fuchsiaFlutterRunner
:
case
Artifact
.
fuchsiaFlutterRunner
:
final
String
artifactFileName
=
_artifactToFileName
(
artifact
,
platform
,
mode
)!;
final
String
artifactFileName
=
_artifactToFileName
(
artifact
,
platform
,
mode
)!;
return
_fileSystem
.
path
.
join
(
root
,
runtime
,
artifactFileName
);
return
_fileSystem
.
path
.
join
(
root
,
runtime
,
artifactFileName
);
default
:
case
Artifact
.
constFinder
:
case
Artifact
.
flutterFramework
:
case
Artifact
.
flutterMacOSFramework
:
case
Artifact
.
flutterMacOSPodspec
:
case
Artifact
.
flutterTester
:
case
Artifact
.
flutterXcframework
:
case
Artifact
.
fontSubset
:
case
Artifact
.
frontendServerSnapshotForEngineDartSdk
:
case
Artifact
.
icuData
:
case
Artifact
.
isolateSnapshotData
:
case
Artifact
.
linuxDesktopPath
:
case
Artifact
.
linuxHeaders
:
case
Artifact
.
platformLibrariesJson
:
case
Artifact
.
skyEnginePath
:
case
Artifact
.
uwptool
:
case
Artifact
.
vmSnapshotData
:
case
Artifact
.
windowsCppClientWrapper
:
case
Artifact
.
windowsDesktopPath
:
case
Artifact
.
windowsUwpCppClientWrapper
:
case
Artifact
.
windowsUwpDesktopPath
:
return
_getHostArtifactPath
(
artifact
,
platform
,
mode
);
return
_getHostArtifactPath
(
artifact
,
platform
,
mode
);
}
}
}
}
...
@@ -586,7 +649,10 @@ class CachedArtifacts implements Artifacts {
...
@@ -586,7 +649,10 @@ class CachedArtifacts implements Artifacts {
.
childDirectory
(
'windows-uwp-x64-
${getNameForBuildMode(mode ?? BuildMode.debug)}
'
)
.
childDirectory
(
'windows-uwp-x64-
${getNameForBuildMode(mode ?? BuildMode.debug)}
'
)
.
childFile
(
_artifactToFileName
(
artifact
,
platform
,
mode
)!)
.
childFile
(
_artifactToFileName
(
artifact
,
platform
,
mode
)!)
.
path
;
.
path
;
default
:
case
Artifact
.
flutterFramework
:
case
Artifact
.
flutterXcframework
:
case
Artifact
.
fuchsiaFlutterRunner
:
case
Artifact
.
fuchsiaKernelCompiler
:
throw
StateError
(
'Artifact
$artifact
not available for platform
$platform
.'
);
throw
StateError
(
'Artifact
$artifact
not available for platform
$platform
.'
);
}
}
}
}
...
...
packages/flutter_tools/lib/src/build_info.dart
View file @
7b01346c
...
@@ -718,7 +718,19 @@ String fuchsiaArchForTargetPlatform(TargetPlatform targetPlatform) {
...
@@ -718,7 +718,19 @@ String fuchsiaArchForTargetPlatform(TargetPlatform targetPlatform) {
return
'arm64'
;
return
'arm64'
;
case
TargetPlatform
.
fuchsia_x64
:
case
TargetPlatform
.
fuchsia_x64
:
return
'x64'
;
return
'x64'
;
default
:
case
TargetPlatform
.
android
:
case
TargetPlatform
.
android_arm
:
case
TargetPlatform
.
android_arm64
:
case
TargetPlatform
.
android_x64
:
case
TargetPlatform
.
android_x86
:
case
TargetPlatform
.
darwin
:
case
TargetPlatform
.
ios
:
case
TargetPlatform
.
linux_arm64
:
case
TargetPlatform
.
linux_x64
:
case
TargetPlatform
.
tester
:
case
TargetPlatform
.
web_javascript
:
case
TargetPlatform
.
windows_uwp_x64
:
case
TargetPlatform
.
windows_x64
:
throw
UnsupportedError
(
'Unexpected Fuchsia platform
$targetPlatform
'
);
throw
UnsupportedError
(
'Unexpected Fuchsia platform
$targetPlatform
'
);
}
}
}
}
...
@@ -963,7 +975,17 @@ String getNameForTargetPlatformArch(TargetPlatform platform) {
...
@@ -963,7 +975,17 @@ String getNameForTargetPlatformArch(TargetPlatform platform) {
return
'x64'
;
return
'x64'
;
case
TargetPlatform
.
linux_arm64
:
case
TargetPlatform
.
linux_arm64
:
return
'arm64'
;
return
'arm64'
;
default
:
case
TargetPlatform
.
android
:
case
TargetPlatform
.
android_arm
:
case
TargetPlatform
.
android_arm64
:
case
TargetPlatform
.
android_x64
:
case
TargetPlatform
.
android_x86
:
case
TargetPlatform
.
fuchsia_arm64
:
case
TargetPlatform
.
fuchsia_x64
:
case
TargetPlatform
.
ios
:
case
TargetPlatform
.
tester
:
case
TargetPlatform
.
web_javascript
:
case
TargetPlatform
.
windows_uwp_x64
:
throw
UnsupportedError
(
'Unexpected target platform
$platform
'
);
throw
UnsupportedError
(
'Unexpected target platform
$platform
'
);
}
}
}
}
...
...
packages/flutter_tools/lib/src/build_system/targets/common.dart
View file @
7b01346c
...
@@ -193,8 +193,20 @@ class KernelSnapshot extends Target {
...
@@ -193,8 +193,20 @@ class KernelSnapshot extends Target {
case
TargetPlatform
.
linux_x64
:
case
TargetPlatform
.
linux_x64
:
forceLinkPlatform
=
true
;
forceLinkPlatform
=
true
;
break
;
break
;
default
:
case
TargetPlatform
.
android
:
case
TargetPlatform
.
android_arm
:
case
TargetPlatform
.
android_arm64
:
case
TargetPlatform
.
android_x64
:
case
TargetPlatform
.
android_x86
:
case
TargetPlatform
.
fuchsia_arm64
:
case
TargetPlatform
.
fuchsia_x64
:
case
TargetPlatform
.
ios
:
case
TargetPlatform
.
linux_arm64
:
case
TargetPlatform
.
tester
:
case
TargetPlatform
.
web_javascript
:
case
TargetPlatform
.
windows_uwp_x64
:
forceLinkPlatform
=
false
;
forceLinkPlatform
=
false
;
break
;
}
}
final
PackageConfig
packageConfig
=
await
loadPackageConfigWithLogging
(
final
PackageConfig
packageConfig
=
await
loadPackageConfigWithLogging
(
...
...
packages/flutter_tools/lib/src/commands/build_bundle.dart
View file @
7b01346c
...
@@ -111,16 +111,27 @@ class BuildBundleCommand extends BuildSubCommand {
...
@@ -111,16 +111,27 @@ class BuildBundleCommand extends BuildSubCommand {
}
}
break
;
break
;
case
TargetPlatform
.
windows_x64
:
case
TargetPlatform
.
windows_x64
:
case
TargetPlatform
.
windows_uwp_x64
:
if
(!
featureFlags
.
isWindowsEnabled
)
{
if
(!
featureFlags
.
isWindowsEnabled
)
{
throwToolExit
(
'Windows is not a supported target platform.'
);
throwToolExit
(
'Windows is not a supported target platform.'
);
}
}
break
;
break
;
case
TargetPlatform
.
linux_x64
:
case
TargetPlatform
.
linux_x64
:
case
TargetPlatform
.
linux_arm64
:
if
(!
featureFlags
.
isLinuxEnabled
)
{
if
(!
featureFlags
.
isLinuxEnabled
)
{
throwToolExit
(
'Linux is not a supported target platform.'
);
throwToolExit
(
'Linux is not a supported target platform.'
);
}
}
break
;
break
;
default
:
case
TargetPlatform
.
android
:
case
TargetPlatform
.
android_arm
:
case
TargetPlatform
.
android_arm64
:
case
TargetPlatform
.
android_x64
:
case
TargetPlatform
.
android_x86
:
case
TargetPlatform
.
fuchsia_arm64
:
case
TargetPlatform
.
fuchsia_x64
:
case
TargetPlatform
.
ios
:
case
TargetPlatform
.
tester
:
case
TargetPlatform
.
web_javascript
:
break
;
break
;
}
}
...
...
packages/flutter_tools/lib/src/commands/create_base.dart
View file @
7b01346c
...
@@ -287,7 +287,7 @@ abstract class CreateBase extends FlutterCommand {
...
@@ -287,7 +287,7 @@ abstract class CreateBase extends FlutterCommand {
final
FileSystemEntityType
type
=
globals
.
fs
.
typeSync
(
projectDirPath
);
final
FileSystemEntityType
type
=
globals
.
fs
.
typeSync
(
projectDirPath
);
switch
(
type
)
{
switch
(
type
)
{
// ignore: exhaustive_cases, https://github.com/dart-lang/linter/issues/3017
case
FileSystemEntityType
.
file
:
case
FileSystemEntityType
.
file
:
// Do not overwrite files.
// Do not overwrite files.
throwToolExit
(
"Invalid project name: '
$projectDirPath
' - file exists."
,
throwToolExit
(
"Invalid project name: '
$projectDirPath
' - file exists."
,
...
@@ -298,7 +298,9 @@ abstract class CreateBase extends FlutterCommand {
...
@@ -298,7 +298,9 @@ abstract class CreateBase extends FlutterCommand {
throwToolExit
(
"Invalid project name: '
$projectDirPath
' - refers to a link."
,
throwToolExit
(
"Invalid project name: '
$projectDirPath
' - refers to a link."
,
exitCode:
2
);
exitCode:
2
);
break
;
break
;
default
:
case
FileSystemEntityType
.
directory
:
case
FileSystemEntityType
.
notFound
:
break
;
}
}
}
}
...
...
packages/flutter_tools/lib/src/commands/ide_config.dart
View file @
7b01346c
...
@@ -269,11 +269,14 @@ class IdeConfigCommand extends FlutterCommand {
...
@@ -269,11 +269,14 @@ class IdeConfigCommand extends FlutterCommand {
String
_validateFlutterDir
(
String
dirPath
,
{
String
flutterRoot
})
{
String
_validateFlutterDir
(
String
dirPath
,
{
String
flutterRoot
})
{
final
FileSystemEntityType
type
=
globals
.
fs
.
typeSync
(
dirPath
);
final
FileSystemEntityType
type
=
globals
.
fs
.
typeSync
(
dirPath
);
switch
(
type
)
{
switch
(
type
)
{
// ignore: exhaustive_cases, https://github.com/dart-lang/linter/issues/3017
case
FileSystemEntityType
.
link
:
case
FileSystemEntityType
.
link
:
// Do not overwrite links.
// Do not overwrite links.
return
"Invalid project root dir: '
$dirPath
' - refers to a link."
;
return
"Invalid project root dir: '
$dirPath
' - refers to a link."
;
default
:
case
FileSystemEntityType
.
file
:
case
FileSystemEntityType
.
directory
:
case
FileSystemEntityType
.
notFound
:
return
null
;
return
null
;
}
}
return
null
;
// dead code, remove after null safety migration
}
}
packages/flutter_tools/lib/src/commands/update_packages.dart
View file @
7b01346c
...
@@ -850,7 +850,10 @@ class PubspecYaml {
...
@@ -850,7 +850,10 @@ class PubspecYaml {
}
}
endOfDevDependencies
=
output
.
length
;
endOfDevDependencies
=
output
.
length
;
break
;
break
;
default
:
case
Section
.
builders
:
case
Section
.
dependencyOverrides
:
case
Section
.
header
:
case
Section
.
other
:
// In other sections, pass everything through in its original form.
// In other sections, pass everything through in its original form.
output
.
add
(
data
.
line
);
output
.
add
(
data
.
line
);
if
(
data
.
lockLine
!=
null
)
{
if
(
data
.
lockLine
!=
null
)
{
...
...
packages/flutter_tools/lib/src/doctor_validator.dart
View file @
7b01346c
...
@@ -126,8 +126,6 @@ class GroupedValidator extends DoctorValidator {
...
@@ -126,8 +126,6 @@ class GroupedValidator extends DoctorValidator {
mergedType
=
ValidationType
.
partial
;
mergedType
=
ValidationType
.
partial
;
}
}
break
;
break
;
default
:
throw
'Unrecognized validation type:
${result.type}
'
;
}
}
mergedMessages
.
addAll
(
result
.
messages
);
mergedMessages
.
addAll
(
result
.
messages
);
}
}
...
...
packages/flutter_tools/lib/src/drive/web_driver_service.dart
View file @
7b01346c
...
@@ -317,9 +317,8 @@ Map<String, dynamic> getDesiredCapabilities(Browser browser, bool headless, [Str
...
@@ -317,9 +317,8 @@ Map<String, dynamic> getDesiredCapabilities(Browser browser, bool headless, [Str
'args'
:
<
String
>[
'--disable-fullscreen'
]
'args'
:
<
String
>[
'--disable-fullscreen'
]
},
},
};
};
default
:
throw
UnsupportedError
(
'Browser
$browser
not supported.'
);
}
}
throw
UnsupportedError
(
'Browser
$browser
not supported.'
);
// dead code; remove with null safety migration
}
}
/// Converts [browserName] string to [Browser]
/// Converts [browserName] string to [Browser]
...
@@ -332,5 +331,5 @@ Browser _browserNameToEnum(String browserName) {
...
@@ -332,5 +331,5 @@ Browser _browserNameToEnum(String browserName) {
case
'ios-safari'
:
return
Browser
.
iosSafari
;
case
'ios-safari'
:
return
Browser
.
iosSafari
;
case
'safari'
:
return
Browser
.
safari
;
case
'safari'
:
return
Browser
.
safari
;
}
}
throw
UnsupportedError
(
'Browser
$browserName
not supported'
);
throw
UnsupportedError
(
'Browser
$browserName
not supported'
);
// dead code; remove with null safety migration
}
}
packages/flutter_tools/lib/src/flutter_plugins.dart
View file @
7b01346c
...
@@ -348,7 +348,6 @@ List<Map<String, Object?>> _extractPlatformMaps(List<Plugin> plugins, String typ
...
@@ -348,7 +348,6 @@ List<Map<String, Object?>> _extractPlatformMaps(List<Plugin> plugins, String typ
/// [project] is using.
/// [project] is using.
AndroidEmbeddingVersion
_getAndroidEmbeddingVersion
(
FlutterProject
project
)
{
AndroidEmbeddingVersion
_getAndroidEmbeddingVersion
(
FlutterProject
project
)
{
assert
(
project
.
android
!=
null
);
assert
(
project
.
android
!=
null
);
return
project
.
android
.
getEmbeddingVersion
();
return
project
.
android
.
getEmbeddingVersion
();
}
}
...
@@ -415,7 +414,6 @@ Future<void> _writeAndroidPluginRegistrant(FlutterProject project, List<Plugin>
...
@@ -415,7 +414,6 @@ Future<void> _writeAndroidPluginRegistrant(FlutterProject project, List<Plugin>
templateContent
=
_androidPluginRegistryTemplateNewEmbedding
;
templateContent
=
_androidPluginRegistryTemplateNewEmbedding
;
break
;
break
;
case
AndroidEmbeddingVersion
.
v1
:
case
AndroidEmbeddingVersion
.
v1
:
default
:
globals
.
printError
(
globals
.
printError
(
'This app is using a deprecated version of the Android embedding.
\n
'
'This app is using a deprecated version of the Android embedding.
\n
'
'To avoid unexpected runtime failures, or future build failures, try to migrate this '
'To avoid unexpected runtime failures, or future build failures, try to migrate this '
...
...
packages/flutter_tools/lib/src/ios/mac.dart
View file @
7b01346c
...
@@ -598,8 +598,6 @@ String xcodeBuildActionToString(XcodeBuildAction action) {
...
@@ -598,8 +598,6 @@ String xcodeBuildActionToString(XcodeBuildAction action) {
return
'build'
;
return
'build'
;
case
XcodeBuildAction
.
archive
:
case
XcodeBuildAction
.
archive
:
return
'archive'
;
return
'archive'
;
default
:
throw
UnsupportedError
(
'Unknown Xcode build action'
);
}
}
}
}
...
...
packages/flutter_tools/lib/src/mdns_discovery.dart
View file @
7b01346c
...
@@ -204,7 +204,20 @@ class MDnsObservatoryDiscovery {
...
@@ -204,7 +204,20 @@ class MDnsObservatoryDiscovery {
'See https://github.com/flutter/flutter/issues/46698 for details.'
'See https://github.com/flutter/flutter/issues/46698 for details.'
);
);
break
;
break
;
default
:
case
TargetPlatform
.
android
:
case
TargetPlatform
.
android_arm
:
case
TargetPlatform
.
android_arm64
:
case
TargetPlatform
.
android_x64
:
case
TargetPlatform
.
android_x86
:
case
TargetPlatform
.
darwin
:
case
TargetPlatform
.
fuchsia_arm64
:
case
TargetPlatform
.
fuchsia_x64
:
case
TargetPlatform
.
linux_arm64
:
case
TargetPlatform
.
linux_x64
:
case
TargetPlatform
.
tester
:
case
TargetPlatform
.
web_javascript
:
case
TargetPlatform
.
windows_uwp_x64
:
case
TargetPlatform
.
windows_x64
:
_logger
.
printTrace
(
'No interface with an ipv4 link local address was found.'
);
_logger
.
printTrace
(
'No interface with an ipv4 link local address was found.'
);
break
;
break
;
}
}
...
...
packages/flutter_tools/lib/src/resident_runner.dart
View file @
7b01346c
...
@@ -1467,9 +1467,19 @@ Future<String> getMissingPackageHintForPlatform(TargetPlatform platform) async {
...
@@ -1467,9 +1467,19 @@ Future<String> getMissingPackageHintForPlatform(TargetPlatform platform) async {
return
'Is your project missing an
$manifestPath
?
\n
Consider running "flutter create ." to create one.'
;
return
'Is your project missing an
$manifestPath
?
\n
Consider running "flutter create ." to create one.'
;
case
TargetPlatform
.
ios
:
case
TargetPlatform
.
ios
:
return
'Is your project missing an ios/Runner/Info.plist?
\n
Consider running "flutter create ." to create one.'
;
return
'Is your project missing an ios/Runner/Info.plist?
\n
Consider running "flutter create ." to create one.'
;
default
:
case
TargetPlatform
.
android
:
case
TargetPlatform
.
darwin
:
case
TargetPlatform
.
fuchsia_arm64
:
case
TargetPlatform
.
fuchsia_x64
:
case
TargetPlatform
.
linux_arm64
:
case
TargetPlatform
.
linux_x64
:
case
TargetPlatform
.
tester
:
case
TargetPlatform
.
web_javascript
:
case
TargetPlatform
.
windows_uwp_x64
:
case
TargetPlatform
.
windows_x64
:
return
null
;
return
null
;
}
}
return
null
;
// dead code, remove after null safety migration
}
}
/// Redirects terminal commands to the correct resident runner methods.
/// Redirects terminal commands to the correct resident runner methods.
...
...
packages/flutter_tools/lib/src/runner/flutter_command.dart
View file @
7b01346c
...
@@ -91,10 +91,8 @@ class FlutterCommandResult {
...
@@ -91,10 +91,8 @@ class FlutterCommandResult {
return
'fail'
;
return
'fail'
;
case
ExitStatus
.
killed
:
case
ExitStatus
.
killed
:
return
'killed'
;
return
'killed'
;
default
:
assert
(
false
);
return
null
;
}
}
return
null
;
// dead code, remove with null safety migration
}
}
}
}
...
...
packages/flutter_tools/lib/src/sksl_writer.dart
View file @
7b01346c
...
@@ -47,7 +47,17 @@ Future<String> sharedSkSlWriter(Device device, Map<String, Object> data, {
...
@@ -47,7 +47,17 @@ Future<String> sharedSkSlWriter(Device device, Map<String, Object> data, {
case
TargetPlatform
.
android_x86
:
case
TargetPlatform
.
android_x86
:
targetPlatform
=
TargetPlatform
.
android
;
targetPlatform
=
TargetPlatform
.
android
;
break
;
break
;
default
:
case
TargetPlatform
.
android
:
case
TargetPlatform
.
darwin
:
case
TargetPlatform
.
ios
:
case
TargetPlatform
.
fuchsia_arm64
:
case
TargetPlatform
.
fuchsia_x64
:
case
TargetPlatform
.
linux_arm64
:
case
TargetPlatform
.
linux_x64
:
case
TargetPlatform
.
tester
:
case
TargetPlatform
.
web_javascript
:
case
TargetPlatform
.
windows_uwp_x64
:
case
TargetPlatform
.
windows_x64
:
break
;
break
;
}
}
final
Map
<
String
,
Object
>
manifest
=
<
String
,
Object
>{
final
Map
<
String
,
Object
>
manifest
=
<
String
,
Object
>{
...
...
packages/flutter_tools/test/general.shard/plugins_test.dart
View file @
7b01346c
...
@@ -84,7 +84,8 @@ void main() {
...
@@ -84,7 +84,8 @@ void main() {
androidProject
androidProject
..
pluginRegistrantHost
=
androidDirectory
.
childDirectory
(
'app'
)
..
pluginRegistrantHost
=
androidDirectory
.
childDirectory
(
'app'
)
..
hostAppGradleRoot
=
androidDirectory
..
hostAppGradleRoot
=
androidDirectory
..
exists
=
false
;
..
exists
=
false
..
embeddingVersion
=
AndroidEmbeddingVersion
.
v2
;
webProject
=
FakeWebProject
();
webProject
=
FakeWebProject
();
flutterProject
.
web
=
webProject
;
flutterProject
.
web
=
webProject
;
...
@@ -922,7 +923,6 @@ dependencies:
...
@@ -922,7 +923,6 @@ dependencies:
testUsingContext
(
'Does not throw when AndroidManifest.xml is not found'
,
()
async
{
testUsingContext
(
'Does not throw when AndroidManifest.xml is not found'
,
()
async
{
final
File
manifest
=
fs
.
file
(
'AndroidManifest.xml'
);
final
File
manifest
=
fs
.
file
(
'AndroidManifest.xml'
);
androidProject
.
appManifestFile
=
manifest
;
androidProject
.
appManifestFile
=
manifest
;
await
injectPlugins
(
flutterProject
,
androidPlatform:
true
);
await
injectPlugins
(
flutterProject
,
androidPlatform:
true
);
},
overrides:
<
Type
,
Generator
>{
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fs
,
FileSystem:
()
=>
fs
,
...
...
packages/integration_test/lib/_callback_web.dart
View file @
7b01346c
...
@@ -125,7 +125,7 @@ class WebCallbackManager implements CallbackManager {
...
@@ -125,7 +125,7 @@ class WebCallbackManager implements CallbackManager {
'message'
:
Response
.
webDriverCommand
(
data:
data
).
toJson
(),
'message'
:
Response
.
webDriverCommand
(
data:
data
).
toJson
(),
};
};
break
;
break
;
default
:
case
WebDriverCommandType
.
ack
:
throw
UnimplementedError
(
'
${command.type}
is not implemented'
);
throw
UnimplementedError
(
'
${command.type}
is not implemented'
);
}
}
}
else
{
}
else
{
...
...
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