Home > Software design >  I can't add package integration test
I can't add package integration test

Time:03-16

Someone can help me. Why I can't add this package to my pubspec.yaml.

enter image description here

enter image description here

CodePudding user response:

I assume your project name is also integration_test , change the name of your project as when running the pub get command, flutter reads the project name instead of the library name.

CodePudding user response:

Add the dependencies to the dev_dependencies section of the app’s pubspec.yaml file, specifying the Flutter SDK as the location of the package.

dev_dependencies:
  integration_test:
    sdk: flutter
  flutter_test:
    sdk: flutter

More documentation on here with example.

  • Related