Anyone know how to use 'Path packages?' Ref: https://www.dartlang.org/tools/pub/dependencies#path-packages
I tried bring in another app called 'mvc' and it doesn't like the path: ../mvc/
name: startup_namer description: A new Flutter application. dependencies: flutter: sdk: flutter mvc: path: ../mvc/
It finds the mvc's package file, pubspec.yaml, but I think it's complaining the folder is not in this project's content (Whatever that means?!)
Here is the error message:
Folder C:\Programs\Tools\Projects\Flutter\mvc is not in project content less... (Ctrl+F1) This inspection works in pubspec.yaml file and checks path references for dependencies configured as Path Packages: Path must be valid and target folder must contain pubspec.yaml file. Path Package should be within the project content, otherwise files from such packages are not editable. Example of pubspec.yaml file: name: my_dart_project version: 0.0.1 dependencies: my_another_dart_project: path: ../my_another_dart_project
Does it want the folder, mvc/, 'within' the other project's directory??
path: /Users/username/path/to/package
. – SacWebDeveloper