Skip to content
pubscout

svgaplayer_flutter

2.2.0, released 4 years ago by an unverified publisher

Renders SVGA animations in Flutter natively using CustomPainter.

WASM-readyRepository archived
$ flutter pub add svgaplayer_flutter
Source repository

What it does

Decodes and renders SVGA animation files natively within Flutter using CustomPainter. It supports loading from local assets or remote URLs with controllable animation playback and dynamic element modification.

AI-written summary of version 2.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to render SVGA animation formats inside your Flutter application.
  • You require high-performance, low-cost native rendering using CustomPainter.

Skip it when

  • You need built-in caching for remote resource files (the library suggests using dio or other libraries for this).
  • You are using SVGA format versions newer than 2.0.

Strengths

  • Renders animations natively via CustomPainter for high performance.
  • Supports dynamic elements like replacing bitmaps, adding text, and hiding elements dynamically.

Weaknesses

  • Does not manage any file or resource caches out of the box.
  • Supports 2.0 format only.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
4

Add the dependency to pubspec.yaml and optionally configure local assets if loading local SVGA files.

class MyWidget extends Widget {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: SVGASimpleImage(
          resUrl: "https://github.com/yyued/SVGA-Samples/blob/master/angel.svga?raw=true"),
    );
  }
}

Alternatives

Packages that do the same job and could replace svgaplayer_flutter.

  • flutter_svga

    Flutter SVGA animation player with intelligent caching, audio support, and dynamic elements.

  • scanning_effect

    A CustomPainter widget that adds a scanning line effect around a camera view.

Works with

Packages commonly used together with svgaplayer_flutter: ones it builds on, ones built on it, and its own family.