From 6154d26c2afa1d02c40b4f94e3cdb14247e76bdc Mon Sep 17 00:00:00 2001 From: Luan Nico Date: Sat, 14 Jul 2018 22:39:00 -0300 Subject: [PATCH] Improved docs for Flame.util.paint --- lib/util.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util.dart b/lib/util.dart index 2f26fb6c6..0bb5889a5 100644 --- a/lib/util.dart +++ b/lib/util.dart @@ -45,13 +45,13 @@ class Util { /// Returns a [material.TextPainter] that allows for text rendering and size measuring. /// /// Rendering text on the Canvas is not as trivial as it should. - /// This methods puts all exposes all possible parameters you might want to pass to render text, with sensible defaults. + /// This methods exposes all possible parameters you might want to pass to render text, with sensible defaults. /// Only the [text] is mandatory. /// It returns a [material.TextPainter]. that have the properties: paint, width and height. /// Example usage: /// /// final tp = Flame.util.text('Score: $score', fontSize: 48.0, fontFamily: 'Awesome Font'); - /// p.paint(c, Offset(size.width - p.width - 10, size.height - p.height - 10)); + /// tp.paint(c, Offset(size.width - p.width - 10, size.height - p.height - 10)); /// material.TextPainter text( String text, {