Revert flutter/flutter#19592 (#19861)

It was causing problems rolling Flutter into Fuchsia
This commit is contained in:
Todd Volkert
2018-07-27 08:44:39 -07:00
committed by GitHub
parent 8b05629658
commit 00aac68e2d
575 changed files with 41035 additions and 41036 deletions

View File

@@ -73,7 +73,7 @@ class PathAnimation {
factory PathAnimation.fromFrameData(List<FrameData> frames, int pathIdx) {
if (frames.isEmpty)
return const PathAnimation(<PathCommandAnimation>[], opacities: <double>[]);
return const PathAnimation(const <PathCommandAnimation>[], opacities: const <double>[]);
final List<PathCommandAnimation> commands = <PathCommandAnimation>[];
for (int commandIdx = 0; commandIdx < frames[0].paths[pathIdx].commands.length; commandIdx += 1) {
@@ -386,7 +386,7 @@ class SvgPathCommand {
}
class SvgPathCommandBuilder {
static const Map<String, Null> kRelativeCommands = <String, Null> {
static const Map<String, Null> kRelativeCommands = const <String, Null> {
'c': null,
'l': null,
'm': null,