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

Target of URI doesn't exist: 'package:lottie/lottie.dart'. #276

Open Invadetor opened 1 year ago

Invadetor commented 1 year ago

I install Lottie from Pub.dev using the command: flutter pub add lottie This made the dependency appear on the pubspec.yaml: lottie: ^2.3.2 even after this process, for some reasons when I tried to import the package using: import 'package:lottie/lottie.dart' I get the error: Target of URI doesn't exist: 'package:lottie/lottie.dart'.

ashlynbaum commented 1 year ago

Have you tried running flutter packages get? and if that doesn't work try restarting VSCode.