Cómo instalar paquetes de GitHub en Flutter

dependencies:
  flutter:
    sdk: flutter

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