Dart Editor Will Not Let Me Edit Files Inside Package Folder

Does anyone know why Dart Editor will not allow me to edit files located inside the packages folder ? Initially, I had library class files outside of this folder, but I thought the right way to do this was to put my library under this folder, so I did it, and now I can’t modify the files.

+3
source share
1 answer

Everything in packages/is (usually) a symbolic link to a possible shared copy of the package, so if you edited the file in packages/, you would have edited it for all of your projects, which can be very much not just what you want.

, - , , :

name: my_package
dependency_overrides:
  my_other_package:
    path: /Users/me/dart/my_other_package

, , pub , . , my_package my_other_package .

+2

All Articles