How to add a package from github? (Flutter)
问题 I need to use the latest source code of a package and the latest source hasn't been published yet. What should I write into pubspec.yaml to get a package in github? The code bellow doesn't work. It doesn't download the package and I can't import it into my source code dependencies: flutter: sdk: flutter carousel_pro: git: url: https://github.com/jlouage/flutter-carousel-pro.git 回答1: Example of pubsec.yaml dependencies: flutter: sdk: flutter carousel_pro: git: url: git://github.com/jlouage