Issue
Is there a way to make dart code reusable without publishing is as a package to Pub? I have common code between a few different applications and am wondering how to structure it and use it with only one place the code is modified.
I have the same question for angular dart components. Is there a way to create a local package and use that in my projects without going through Pub?
Maybe I am completely misunderstanding the package structure, but I thought that is for published packages.
Solution
You have several options:
- Install your own pub server. See the pub_server package.
- Work with Git packages
- Work with Path packages
Answered By – Alexandre Ardhuin
Answer Checked By – Mary Flores (FlutterFixes Volunteer)