Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reusable Dart Code/Angular Dart Components

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.

like image 238
user3613162 Avatar asked Feb 11 '26 10:02

user3613162


1 Answers

You have several options:

  • Install your own pub server. See the pub_server package.
  • Work with Git packages
  • Work with Path packages
like image 105
Alexandre Ardhuin Avatar answered Feb 14 '26 23:02

Alexandre Ardhuin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!