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.15k stars 197 forks source link

add TGS (telegram animated sticker) support #309

Open agusibrahim opened 10 months ago

agusibrahim commented 10 months ago

hi, i added some stuff to support load gzip json data where is used in telegram animated sticker file (tgs). simply just load normally tgs file from asset or network

xvrh commented 9 months ago

@agusibrahim the next version (currently v3.0.0-alpha.1) will support loading .tgs file like this:

Lottie.asset(
  'sticker.tgs',
  decoder: LottieComposition.decodeGZip,
)

This is a bit different from your PR because:

Let me know if it works for you.