1
0
forked from uestc/Notes
Notes/Flutter/Flutter-pubspec.yaml.md
2024-10-17 15:36:48 +08:00

16 lines
401 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#### 依赖 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 仓库中有多个软件包,则可以使用此属性指定软件包