svga / SVGAPlayer-Flutter

The SVGAPlayer implementation of Flutter using CustomPainter.
Other
245 stars 102 forks source link

[web] Support flutter web. #25

Closed PonyCui closed 3 years ago

PonyCui commented 4 years ago

We are trying to make SVGAPlayer support flutter web. Please stay turn.

Code https://github.com/yyued/SVGAPlayer-Flutter/tree/web_support

Definitions

Regular mode issue

The regular mode draws image as a HtmlElement, which performance is not good. And cannot display bitmap as we need.

We need a way to control the CustomPainter, access the canvas context, draw image via CanvasContext2D drawImage method.

Skia mode

The SVGAPlayer-Flutter plays in skia mode fine.

PonyCui commented 3 years ago

已发布新版本 2.1.0