nrs jayaram
nrs jayaram

Reputation: 3438

Flutter: packages not added into flutter SDK

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

Upvotes: 1

Views: 489

Answers (1)

Andrii Turkovskyi
Andrii Turkovskyi

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

Related Questions