svga_next library
Classes
- AssetSvgaSource
- AudioData
- FileSvgaSource
- MemorySvgaSource
- NetworkSvgaSource
- SpriteData
- SvgaAudio
- SvgaAudioBackend
- Plug in any audio engine (audioplayers, just_audio, a native channel…). The core package stays dependency-free.
- SvgaAudioTrack
- SvgaCache
- In-memory LRU of decoded movies with a byte budget.
- SvgaConfig
- Process-wide settings. Configure once at startup.
- SvgaController
- Drives playback from a Ticker.
- SvgaDecodeOptions
- SvgaDynamicEntity
- Runtime replacements for layers, addressed by the sprite's imageKey.
- SvgaDynamicImage
- SvgaDynamicText
- SvgaLoader
- SvgaMovie
- A fully materialised, ready-to-draw SVGA movie.
- SvgaPainter
- Allocation-free (per frame) renderer. Paint objects and the transform matrix are reused; paths are pre-built and cached on the movie; text is laid out once; invisible sprites are culled in O(1).
- SvgaPlayer
- SvgaSource
-
Where an SVGA comes from. Sources with a cacheKey are shared through
SvgaCache(and concurrent loads of the same key are de-duplicated).
Enums
- SvgaFillMode
- What to show after a finite playback ends.
Typedefs
- SvgaErrorWidgetBuilder = Widget Function(BuildContext context, Object error)
- SvgaLayerDrawer = void Function(Canvas canvas, Rect bounds, int frame, double alpha)
-
Custom per-layer painting.
boundsis the sprite's layout rect in the sprite's local (already transformed & clipped) space;alphais the layer's current opacity.
Exceptions / Errors
- SvgaException
- Thrown when an SVGA file cannot be loaded or parsed.