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

Unified Diff: sky/examples/raw/spinning_image.dart

Issue 1184523002: Fix bustage from my previous CL: "Color.fromARGB" becomes "new Color.fromARGB". (Closed) Base URL: git@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/examples/raw/spinning_arabic.dart ('k') | sky/examples/raw/spinning_square.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/raw/spinning_image.dart
diff --git a/sky/examples/raw/spinning_image.dart b/sky/examples/raw/spinning_image.dart
index 87ca8be6141b2023027b0ff91a3d328a6b27bbb3..1a6a8932ade3b67cb5c1f5ff1e85b58998c7265f 100644
--- a/sky/examples/raw/spinning_image.dart
+++ b/sky/examples/raw/spinning_image.dart
@@ -19,7 +19,7 @@ void beginFrame(double timeStamp) {
canvas.translate(view.width / 2.0, view.height / 2.0);
canvas.rotate(math.PI * delta / 1800);
canvas.scale(0.2, 0.2);
- Paint paint = new Paint()..color = Color.fromARGB(255, 0, 255, 0);
+ Paint paint = new Paint()..color = const Color.fromARGB(255, 0, 255, 0);
if (image != null)
canvas.drawImage(image, -image.width / 2.0, -image.height / 2.0, paint);
view.picture = canvas.endRecording();
« no previous file with comments | « sky/examples/raw/spinning_arabic.dart ('k') | sky/examples/raw/spinning_square.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698