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

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

Issue 1215163003: Random cleanup of various Dart things in our tree. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « sky/sdk/example/mine_digger/lib/main.dart ('k') | sky/sdk/example/rendering/baseline.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/raw/hello_world.dart
diff --git a/sky/sdk/example/raw/hello_world.dart b/sky/sdk/example/raw/hello_world.dart
index 9dc7b448decc002620692b1c69ea8e8c8292d28f..e667391734b3dcfd9f595a90d706ab33c6d84b98 100644
--- a/sky/sdk/example/raw/hello_world.dart
+++ b/sky/sdk/example/raw/hello_world.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';
Picture draw(int a, int r, int g, int b) {
@@ -13,7 +12,7 @@ Picture draw(int a, int r, int g, int b) {
double radius = size.shortestSide * 0.45;
Paint paint = new Paint()..color = new Color.fromARGB(a, r, g, b);
- canvas.drawCircle(size.center, radius, paint);
+ canvas.drawCircle(size.center(Point.origin), radius, paint);
return recorder.endRecording();
}
« no previous file with comments | « sky/sdk/example/mine_digger/lib/main.dart ('k') | sky/sdk/example/rendering/baseline.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698