Roll engine to ed303c628fe4b322529f8cf01ecb38135a2bab73 (dart roll)
Changes since last roll:
```
ed303c628 Roll dart sdk again. Previous roll required 23ae4fa098 revert. (#4966)
8cd272733 Revert "Roll dart to 7764e6962e22afcf4b58c4e3cef3147330f3c884. (#4960)" (#4965)
9199b40f2 Revert "Support multiple shells in a single process. (#4932)" (#4964)
6baff4c82 Support multiple shells in a single process. (#4932)
31c5bb427 Roll dart to 7764e6962e22afcf4b58c4e3cef3147330f3c884. (#4960)
c8e4c6984 Avoid copying the contents of large platform message responses (#4947)
5ff527295 Update to use new vulkan GrBackendRenderTarget ctor. (#4962)
0c8993a1a Update to use new vulkan GrBackendRenderTarget ctor (part 2) (#4963)
132ebdda8 Revert "Roll src/third_party/skia/ 9874bf1bc..52e16d984 (135 commits) (#4958)" (#4961)
11882ab9e Roll src/third_party/skia/ 9874bf1bc..52e16d984 (135 commits) (#4958)
```
Add consts
diff --git a/bin/internal/engine.version b/bin/internal/engine.version
index efc477f..31dc00f 100644
--- a/bin/internal/engine.version
+++ b/bin/internal/engine.version
@@ -1 +1 @@
-8cd27273351ea6e2fef0b3801fe759a8fbe4d162
+ed303c628fe4b322529f8cf01ecb38135a2bab73
diff --git a/dev/manual_tests/lib/card_collection.dart b/dev/manual_tests/lib/card_collection.dart
index b8ff1cd..49f8df7 100644
--- a/dev/manual_tests/lib/card_collection.dart
+++ b/dev/manual_tests/lib/card_collection.dart
@@ -344,7 +344,7 @@
}
Shader _createShader(Rect bounds) {
- return new LinearGradient(
+ return const LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: const <Color>[const Color(0x00FFFFFF), const Color(0xFFFFFFFF)],
diff --git a/examples/flutter_gallery/lib/demo/cupertino/cupertino_refresh_demo.dart b/examples/flutter_gallery/lib/demo/cupertino/cupertino_refresh_demo.dart
index 5c34206..770e4dd 100644
--- a/examples/flutter_gallery/lib/demo/cupertino/cupertino_refresh_demo.dart
+++ b/examples/flutter_gallery/lib/demo/cupertino/cupertino_refresh_demo.dart
@@ -152,9 +152,9 @@
new Container(
width: 38.0,
child: called
- ? new Align(
+ ? const Align(
alignment: Alignment.topCenter,
- child: new Icon(
+ child: const Icon(
CupertinoIcons.phone_solid,
color: CupertinoColors.inactiveGray,
size: 18.0,
@@ -207,9 +207,9 @@
letterSpacing: -0.41,
),
),
- new Padding(
+ const Padding(
padding: const EdgeInsets.only(left: 9.0),
- child: new Icon(
+ child: const Icon(
CupertinoIcons.info,
color: CupertinoColors.activeBlue
),
diff --git a/examples/flutter_gallery/lib/demo/cupertino/cupertino_switch_demo.dart b/examples/flutter_gallery/lib/demo/cupertino/cupertino_switch_demo.dart
index 313733e..9b81254 100644
--- a/examples/flutter_gallery/lib/demo/cupertino/cupertino_switch_demo.dart
+++ b/examples/flutter_gallery/lib/demo/cupertino/cupertino_switch_demo.dart
@@ -42,8 +42,8 @@
],
),
new Column(
- children: <Widget>[
- new CupertinoSwitch(
+ children: const <Widget>[
+ const CupertinoSwitch(
value: true,
onChanged: null,
),
@@ -53,8 +53,8 @@
],
),
new Column(
- children: <Widget>[
- new CupertinoSwitch(
+ children: const <Widget>[
+ const CupertinoSwitch(
value: false,
onChanged: null,
),
diff --git a/examples/flutter_gallery/lib/demo/video_demo.dart b/examples/flutter_gallery/lib/demo/video_demo.dart
index 359653d..f55c1b7 100644
--- a/examples/flutter_gallery/lib/demo/video_demo.dart
+++ b/examples/flutter_gallery/lib/demo/video_demo.dart
@@ -182,13 +182,13 @@
return;
}
if (controller.value.isPlaying) {
- imageFadeAnimation = new FadeAnimation(
- child: new Icon(Icons.pause, size: 100.0),
+ imageFadeAnimation = const FadeAnimation(
+ child: const Icon(Icons.pause, size: 100.0),
);
controller.pause();
} else {
- imageFadeAnimation = new FadeAnimation(
- child: new Icon(Icons.play_arrow, size: 100.0),
+ imageFadeAnimation = const FadeAnimation(
+ child: const Icon(Icons.play_arrow, size: 100.0),
);
controller.play();
}
diff --git a/packages/flutter/lib/src/material/date_picker.dart b/packages/flutter/lib/src/material/date_picker.dart
index a3818fc..c278619 100644
--- a/packages/flutter/lib/src/material/date_picker.dart
+++ b/packages/flutter/lib/src/material/date_picker.dart
@@ -204,7 +204,7 @@
@override
SliverGridLayout getLayout(SliverConstraints constraints) {
- final int columnCount = DateTime.daysPerWeek;
+ const int columnCount = DateTime.daysPerWeek;
final double tileWidth = constraints.crossAxisExtent / columnCount;
final double tileHeight = math.min(_kDayPickerRowHeight, constraints.viewportMainAxisExtent / (_kMaxDayPickerRowCount + 1));
return new SliverGridRegularTileLayout(