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

Unified Diff: sky/sdk/example/raw/baseline.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/baseline.dart
diff --git a/sky/sdk/example/raw/baseline.dart b/sky/sdk/example/raw/baseline.dart
index f848985d2fe4159413d1a4b1d4afde5412a6d362..4d88108616572ada32001dfc65ec8d6381c0b189 100644
--- a/sky/sdk/example/raw/baseline.dart
+++ b/sky/sdk/example/raw/baseline.dart
@@ -38,7 +38,7 @@ void drawText(sky.Canvas canvas, String lh) {
paint.color = const sky.Color(0xFFFF9000);
paint.setStyle(sky.PaintingStyle.stroke);
paint.strokeWidth = 3.0;
- canvas.drawPath(path, paint);
+ canvas.drawPath(path, paint);
// paint the text
layoutRoot.paint(canvas);
@@ -47,7 +47,7 @@ void drawText(sky.Canvas canvas, String lh) {
void main() {
// prepare the rendering
sky.PictureRecorder recorder = new sky.PictureRecorder();
- sky.Canvas canvas = new sky.Canvas(recorder, new sky.Size(sky.view.width, sky.view.height));
+ sky.Canvas canvas = new sky.Canvas(recorder, new sky.Rect.fromLTWH(0.0, 0.0, sky.view.width, sky.view.height));
// background
sky.Paint paint = new sky.Paint();

Powered by Google App Engine
This is Rietveld 408576698