Not able to import the intl package for dart
Hi I am trying to use the intl package in my flutter project. The packages get command runs successfully but when I import the package it shows error.
For the import in the my dart file I am using the following import
I have also upgraded flutter from the terminal using the flutter upgrade command.
Here are some steps that I offten see as problems with dependencies in flutter.
The thing with
pubspec.yamlis that you have to save it CRTL/CMD + S before pub get will work. Running pub get from IDE doesn't save the file automatically.
flutter cleanand then run
flutter pub get. Sometimes when you remove dependencies like plugins,
.buildfolder doesnt get cleaned up properly so you have to do it manually.
You can try to repair pub cache by running
flutter pub cache repair
Sometimes just restarting your IDE might solve the problem as well.