Adding a note about the changes on the docs

This commit is contained in:
Erick Zanardo
2019-08-02 19:37:59 -03:00
committed by Erick (CptBlackPixel)
parent 029a392fed
commit 4c51118347

View File

@ -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).