I want to import the Recipe class into my user.dart file, but i cant. I tried to create a path in the pubspac.yaml
, but still it doesnt work.
Here is my package arch
I have a file inside the recipe_repository that i want to import inside a file inside the user_repository. each one recipe/user_repository
has a pubspac.yaml
.
0
packages
should not be at the same level as the main project’s pubspec.yaml… it should be up one level.
So you’ll have packages, which contains main
, recipe
, user
, and they each have pubspec.yaml
and others. There won’t be a pubspec.yaml
at the top, although I recommend you use Melos and that’ll need a melos.yaml
at the top.
4