How do you force ‘pub get’ to get latest from git?

In your pubspec.yaml, you can specify a particular git commit:

dependencies:
  http2:
    git:
      url: 'https://github.com/dart-lang/http2.git'
      ref: 'c31df28c3cf076c9aacaed1d77f45b66bb2e01a6'

Or if you specify only a branch in “ref”:

dependencies:
  http2:
    git:
      url: 'https://github.com/dart-lang/http2.git'
      ref: 'master'

You need to force the update with flutter pub upgrade

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)