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'.
I install Lottie from Pub.dev using the command:
flutter pub add lottie
This made the dependency appear on thepubspec.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'.