NotesUESTC/Flutter/Flutter-pubspec.yaml.md

16 lines
401 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#### 依赖 git repository
依赖 Github 上的一个插件:
```text
dependencies:
bloc:
git:
url: https://github.com/felangel/bloc.git
ref: bloc_fixes_issue_110
path: packages/bloc
```
- urlgithub 地址
- ref表示git引用可以是 **commit hash, tag** 或者 **branch**
- path如果 git 仓库中有多个软件包,则可以使用此属性指定软件包