skip to Main Content

I want to import a package’s specific pull request, for example, this one. I wish I could do:

dependencies:
  permission_handler:
    git: https://github.com/Baseflow/flutter-permission-handler/pull/967

2

Answers


  1. Chosen as BEST ANSWER

    You can need to use ref and give it the value of the commit.

    dependencies:
      permission_handler:
        git: https://github.com/Baseflow/flutter-permission-handler.git
        ref: a73ec3f5164bbc21ad0a9748ab58e862fb80b12f
    

  2. Please check this format.

    dependencies:
      permission_handler:
        git:
          url: https://github.com/Baseflow/flutter-permission-handler.git
          ref: a73ec3f5164bbc21ad0a9748ab58e862fb80b12f
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search