title: How to organise multi package flutter project and use it as dependency
body: <p>I would like to organise a flutter project into a multi-package one with following requirements:</p>
  
  <ul>
  <li>use one repository for this project</li>
  <li>able for developers to work on the packages in this repository locally</li>
  <li>make the packages accessible as dependencies from other projects outside of this repository</li>
  </ul>
  
  <p>The file setup for the repository I have now is:</p>
  
  <pre><code>.
  ├── app_base
  │   ├── ...
  │   └── pubspec.yaml
  ├── feature
  │   ├── ...
  │   └── pubspec.yaml
  └── README.md
  </code></pre>
  
  <p>I tried using path dependencies like this in <code>app_base/pubspec.yaml</code>:</p>
  
  <pre><code>name: app_base
  
  dependencies:
    feature:
      path: ../feature
  </code></pre>
  
  <p>and it works for local development but if I try to use <code>app_base</code> in a completely different project and not use paths but a git dependency:</p>
  
  <pre><code>name: actual_app
  
  dependencies:
    app_base:
      git:
        url: ssh://address.to/the_repo.git
        path: app_base
        ref: deadbaca
  
  </code></pre>
  
  <p>it cannot resolve the transitive <code>feature</code> dependency:</p>
  
  <pre><code>Running "flutter packages get" in actual_app...            
  Error on line 21, column 11: Invalid description: "../feature" is a relative path, but this isn't a local pubspec.
      path: ../feature
            ^^^^^^^^^^
  
  pub get failed (65)
  Process finished with exit code 65
  </code></pre>
  
  <p>Is there a way to make it work for both local development and used as a git dependency from other project?</p>