Fix analyzer errors (#11284)

This commit is contained in:
Michael Goderbauer 2017-07-18 17:24:56 -07:00 committed by Ian Hickson
parent 9480a3e591
commit 5f9e5605a6

View file

@ -34,7 +34,7 @@ void main() {
test('RenderPhysicalModel compositing on Fuchsia', () {
debugDefaultTargetPlatformOverride = TargetPlatform.fuchsia;
final root = new RenderPhysicalModel(color: new Color(0xffff00ff));
final RenderPhysicalModel root = new RenderPhysicalModel(color: const Color(0xffff00ff));
layout(root, phase: EnginePhase.composite);
expect(root.needsCompositing, isFalse);
@ -54,7 +54,7 @@ void main() {
test('RenderPhysicalModel compositing on non-Fuchsia', () {
debugDefaultTargetPlatformOverride = TargetPlatform.iOS;
final root = new RenderPhysicalModel(color: new Color(0xffff00ff));
final RenderPhysicalModel root = new RenderPhysicalModel(color: const Color(0xffff00ff));
layout(root, phase: EnginePhase.composite);
expect(root.needsCompositing, isFalse);