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