From 4c51118347a28c5c206716f230d3a81423caa604 Mon Sep 17 00:00:00 2001 From: Erick Zanardo Date: Fri, 2 Aug 2019 19:37:59 -0300 Subject: [PATCH] Adding a note about the changes on the docs --- doc/images.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/images.md b/doc/images.md index 50dc2bdb7..a39c7fab8 100644 --- a/doc/images.md +++ b/doc/images.md @@ -39,6 +39,8 @@ You must pass the size to the render method, and the image will be resized accor The render method will do nothing while the sprite has not been loaded, so you don't need to worry. The image is cached in the `Images` class, so you can safely create many sprites with the same fileName. +All render methods from the Sprite class can receive a `Paint` instance on the optional named parameter `overridePaint` that parameter will override the current `Sprite` paint instance for that render call. + Sprites can also be used as widgets, to do so, just use `Flame.util.spriteAsWidget` A complete example of using sprite as widegets can be found [here](examples/animation_widget).