'how to customize pub.dev package and use it?

We want to change and edit a package for flutter or dart . How should we do this and use this package on own projects? I'm planning to fork it from the GitHub source. What do you think should be done next?



Solution 1:[1]

dependencies:
  plugin1:
    git:
      url: git://github.com/flutter/plugin1.git

See Dependencies on unpublished packages for details.

Solution 2:[2]

What I did for multiple projects was copying the codes from the package into my project directory and then edit it according to my need, removing all unnecessary codes if it is not needed in my application.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 user18309290
Solution 2 Md. Kamrul Amin