lottie_thorvg 0.0.1 lottie_thorvg: ^0.0.1 copied to clipboard
This Lottie for Flutter uses ThorVG as a renderer, provides a high performance and compact size.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add lottie_thorvg
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
lottie_thorvg: ^0.0.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:lottie_thorvg/lottie.dart';
import 'package:lottie_thorvg/thorvg.dart';
import 'package:lottie_thorvg/thorvg_flutter_bindings_generated.dart';
import 'package:lottie_thorvg/utils.dart';