• Latest
  • Hot
  • Ask
  • Full Apps
  • Ui
  • Packages
Ask February 14,2019

Select branch in git dependency

Its possible to select some branch in the pubspec.yaml?

  library_sdk:
    git:
      url: git://github.com/library/library.git

I need to use the develop branch instead master.


Solution 1: Pablo Cegarra

Ok, from flutter doc (https://dart.dev/tools/pub/dependencies):

If you want to depend on a specific commit, branch, or tag, add a ref argument:

 dependencies:   
     kittens:
       git:
         url: git://github.com/munificent/kittens.git
         ref: some-branch


Twitter Facebook Reddit Hacker News LinkedIn Email

Most Viewed

Netflix UI Clone Build with Flutter and BloC

GitJournal - Markdown Notes Build with Fluter

How to debug multiple widgets used the same GlobalKey

Sign in up takes so long time to load from firebase

Featured Articles

Catagories

  • Ask63292
  • Full Apps40
  • Ui5
  • Packages2
  • Game2
  • Template0
  • flutter
  • dart
  • error-handling
  • flutter-layout
  • text-to-speech
  • android
  • firebase
  • google-cloud-firestore
  • image
  • appbar
  • firebase-cloud-messaging
  • java
  • mobile
  • libraries
  • dropdown
  • flutter-web
  • firebase-authentication
  • authentication
  • dictionary
  • drop-down-menu
  • riverpod
  • camera
  • stream
  • stream-builder
  • android-studio
  • flutter-test
  • flutter-objectbox
  • text-alignment
  • flutterdriver
  • flutter-integration-test
  • splash-screen
  • flutter-plugin
  • sqflite
  • dart-http
  • push-notification
  • dart-pub
  • continuous-integration
  • gitlab
  • flutter-dependencies
  • php
  • redis
  • material-design
  • flutter-bloc
  • arrays
  • string
  • streaming
  • channel
  • television
  • textfield
  • flutter-textformfield
  • casting
  • async-await
  • keyboard
  • widget
  • Privacy Policy
  • Submit Project
© Copyright © All rights reserved
Licensed under cc by-sa 3.0 with attribution required.

Catagories

  • Ask
  • Full Apps
  • Ui
  • Packages

Join our Newsletter