xvrh / lottie-flutter

Render After Effects animations natively on Flutter. This package is a pure Dart implementation of a Lottie player.
https://pub.dev/packages/lottie
MIT License
1.16k stars 197 forks source link

How should I playsegment? #329

Closed nroyliu closed 6 months ago

nroyliu commented 9 months ago

Animation transitions and results in the same Lottie. How can I implement like Flutter web playSegment method?

xvrh commented 9 months ago

You can provide a custom AnimationController and use the animateTo method. Have a look at this example: https://github.com/xvrh/lottie-flutter/blob/master/example/lib/examples/markers.dart

nroyliu commented 9 months ago

You can provide a custom AnimationController and use the animateTo method. Have a look at this example: https://github.com/xvrh/lottie-flutter/blob/master/example/lib/examples/markers.dart

I have tried this method before, it seems that I did not pass the correct parameters