mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-27 04:01:24 +08:00
[flutter] Fix first frame flicker
This commit is contained in:
parent
039fd9a3e8
commit
916193e57e
@ -107,8 +107,8 @@ class _SpineWidgetState extends State<SpineWidget> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
skeletonDrawable = SkeletonDrawable(atlas, skeletonData, true);
|
skeletonDrawable = SkeletonDrawable(atlas, skeletonData, true);
|
||||||
skeletonDrawable?.update(0.016);
|
|
||||||
widget.controller._initialize(atlas, skeletonData, skeletonDrawable!);
|
widget.controller._initialize(atlas, skeletonData, skeletonDrawable!);
|
||||||
|
skeletonDrawable?.update(0);
|
||||||
setState(() {
|
setState(() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user