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

Unified Diff: sky/sdk/example/raw/hello_world.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/hello_world.dart
diff --git a/sky/sdk/example/raw/hello_world.dart b/sky/sdk/example/raw/hello_world.dart
index e667391734b3dcfd9f595a90d706ab33c6d84b98..b091338b9b01ac413fc734ba740384ed5f8a4896 100644
--- a/sky/sdk/example/raw/hello_world.dart
+++ b/sky/sdk/example/raw/hello_world.dart
@@ -8,7 +8,7 @@ Picture draw(int a, int r, int g, int b) {
Size size = new Size(view.width, view.height);
PictureRecorder recorder = new PictureRecorder();
- Canvas canvas = new Canvas(recorder, size);
+ Canvas canvas = new Canvas(recorder, Point.origin & size);
double radius = size.shortestSide * 0.45;
Paint paint = new Paint()..color = new Color.fromARGB(a, r, g, b);

Powered by Google App Engine
This is Rietveld 408576698