v3.0.0-alpha.4
Pre-release
Pre-release
-
Add
backgroundLoading
parameter toLottie.asset|network|file|memory
.
IfbackgroundLoading
is true, the animation will be loaded in a background isolate.
This is useful for large animations that can take a long time to parse and block the UI work. -
Replace
enableRenderCache
withrenderCache: RenderCache.raster
.
The new classRenderCache
allows to specify the cache behaviour:RenderCache.raster
: Cache the frames as rasterized images living in the GPU memory.RenderCache.drawingCommands
: Cache the frames as a list of graphical operations. This will only save CPU
work but will use a lot less memory.