Reputation: 3438
We are working on Flutter v1.7.8+hotfix.4
, using VS Code
added a new package called english_words
. the package is updated with all required files in the app but SDK, not updated flutter/packages
, here we are unable to see the package folder.
Due to the above issues getting an error from main.dart
file
Target of URI doesn't exist 'package:english_words/english_words.dart'.
pubspec.yaml
dependencies:
flutter_test:
sdk: flutter
english_words: ^3.1.5
flutter packages get
got response exit code 0
flutter pub get
or pub get
no error. reload/rebuild
the app using flutter run
but packages not updated.pubspec.yaml
, pubspec.lock
, .packages
updated fine.get Packages
not solved.Upvotes: 1
Views: 489
Reputation: 29438
Check if you have this in your pubsec.yaml
file
dependencies:
flutter:
sdk: flutter
english_words: ^3.1.5
In you code there is dev_dependencies
. Replace this dependency
Upvotes: 1