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

Unified Diff: sky/sdk/example/raw/shadow.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/shadow.dart
diff --git a/sky/sdk/example/raw/shadow.dart b/sky/sdk/example/raw/shadow.dart
index 73a5053c2549d27147dd47aa1661669291871aff..5f44336c8347feafdae3466ae8a663b0152e6af5 100644
--- a/sky/sdk/example/raw/shadow.dart
+++ b/sky/sdk/example/raw/shadow.dart
@@ -7,7 +7,7 @@ import 'dart:sky';
void beginFrame(double timeStamp) {
double size = 100.0;
PictureRecorder recorder = new PictureRecorder();
- Canvas canvas = new Canvas(recorder, new Size(view.width, view.height));
+ Canvas canvas = new Canvas(recorder, new Rect.fromLTWH(0.0, 0.0, view.width, view.height));
canvas.translate(size + 10.0, size + 10.0);
Paint paint = new Paint();

Powered by Google App Engine
This is Rietveld 408576698