Index: samples/swarm/SwarmViews.dart |
diff --git a/samples/swarm/SwarmViews.dart b/samples/swarm/SwarmViews.dart |
index c40f571ccbc3bc549ce8f3638df6ac5b575786ee..adaa779075e524ea5dc40da1f34fc132a4014b53 100644 |
--- a/samples/swarm/SwarmViews.dart |
+++ b/samples/swarm/SwarmViews.dart |
@@ -781,11 +781,11 @@ class ArticleView extends View { |
} |
}); |
} |
- |
+ |
/** |
- * Notify the view to jump to a different area if we are selecting an |
+ * Notify the view to jump to a different area if we are selecting an |
* article that is currently outside of the visible area. |
- */ |
+ */ |
void _updateViewForSelectedArticle() { |
Article selArticle = swarm.state.selectedArticle.value; |
if (swarm.state.hasArticleSelected) { |
@@ -816,7 +816,7 @@ class ArticleView extends View { |
final CanvasRenderingContext2D ctx = canvas.getContext("2d"); |
ctx.drawImage(img, 0, 0, img.width, img.height); |
- return canvas.toDataURL("image/png"); |
+ return canvas.toDataUrl("image/png"); |
} |
/** |