Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3471)

Unified Diff: sky/sdk/example/raw/painting_node.dart

Issue 1233673003: Fix bugs found by Dart analyzer (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: typo Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/sdk/example/raw/painting_node.dart
diff --git a/sky/sdk/example/raw/painting_node.dart b/sky/sdk/example/raw/painting_node.dart
index 7297540ee4df303e208aed57ef4c1ee652027343..a550812bedbc6d1f3b30dd0cbb6ffcc0a3d721a7 100644
--- a/sky/sdk/example/raw/painting_node.dart
+++ b/sky/sdk/example/raw/painting_node.dart
@@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-import "dart:math";
import 'dart:sky';
PaintingNode paintingNode = null;
@@ -26,7 +25,7 @@ Picture draw(int a, int r, int g, int b) {
paintingNode.setBackingDrawable(innerRecorder.endRecordingAsDrawable());
}
- canvas.drawPaintingNode(paintingNode);
+ canvas.drawPaintingNode(paintingNode, Point.origin);
return recorder.endRecording();
}

Powered by Google App Engine
This is Rietveld 408576698