Closed PonyCui closed 3 years ago
We are trying to make SVGAPlayer support flutter web. Please stay turn.
Code https://github.com/yyued/SVGAPlayer-Flutter/tree/web_support
flutter build web
flutter build web --dart-define=FLUTTER_WEB_USE_SKIA=true
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.
CustomPainter
The SVGAPlayer-Flutter plays in skia mode fine.
已发布新版本 2.1.0
We are trying to make SVGAPlayer support flutter web. Please stay turn.
Code https://github.com/yyued/SVGAPlayer-Flutter/tree/web_support
Definitions
flutter build web
flutter build web --dart-define=FLUTTER_WEB_USE_SKIA=true
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.