fix animation looping bug

This commit is contained in:
Nick Fisher
2023-08-24 00:57:33 +08:00
parent 03dd2cf6ac
commit 7687e54a0d
3 changed files with 13 additions and 15 deletions

View File

@@ -337,15 +337,8 @@ class FilamentController {
bool reverse = false,
bool replaceActive = true,
double crossfade = 0.0}) async {
await _channel.invokeMethod("playAnimation", [
_assetManager,
asset,
index,
loop ? 1 : 0,
reverse ? 1 : 0,
replaceActive,
crossfade
]);
await _channel.invokeMethod("playAnimation",
[_assetManager, asset, index, loop, reverse, replaceActive, crossfade]);
}
void setAnimationFrame(