You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
void initState() {
this.animationController = SVGAAnimationController(vsync: this);
this._loadAnimation();
super.initState();
}
Widget build(BuildContext context) {
return Container(
width: 40,
height: 20,
child:SVGAImage(this.animationController),
)};
}
_loadAnimation() async {
final videoItem = await SVGAParser.shared.decodeFromAssets(
"assets/svga/first_consume_bg.svga");
this.animationController.videoItem = videoItem;
this
.animationController
.repeat()
.whenComplete(() => this.animationController.videoItem = null);
}
.yaml
assets:
加载本地文件无效,无报错信息,不显示
The text was updated successfully, but these errors were encountered: