Como instalar pacotes do github em flutter

dependencies:
  flutter:
    sdk: flutter

  package_name:
    git:
      url: git://github.com/user/package_name.git
      ref: main # branch name
mathiasgodwin