title: how to add flutter plugin via git to another flutter project?
body: <p>I want to add one flutter plugin in github as dependency to another flutter project.</p>
  
  <p>i have followed the code 
  <a href="https://flutter.dev/docs/development/packages-and-plugins/using-packages#dependencies-on-unpublished-packages" rel="nofollow noreferrer">https://flutter.dev/docs/development/packages-and-plugins/using-packages#dependencies-on-unpublished-packages</a>
  and added a ref tag as mentioned here <a href="https://dart.dev/tools/pub/dependencies#git-packages" rel="nofollow noreferrer">https://dart.dev/tools/pub/dependencies#git-packages</a></p>
  
  <pre><code>dependencies:
    mypluginname:
      git:
        url: http://mywebsite/myproject.git
        ref: master
  </code></pre>
  
  <p>i expect to fetch the latest commit of this branch(master), but it fetches first commit.</p>