add new chinese translations
This commit is contained in:
21
pages.zh/common/flutter-pub.md
Normal file
21
pages.zh/common/flutter-pub.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# flutter pub
|
||||
|
||||
> Flutter 的包管理器。
|
||||
> 注意:包可以在 <https://pub.dev> 上获取。另见:`flutter`。
|
||||
> 更多信息:<https://docs.flutter.dev/packages-and-plugins/using-packages>。
|
||||
|
||||
- 下载/更新 `pubspec.yaml` 中指定的所有包:
|
||||
|
||||
`flutter pub get`
|
||||
|
||||
- 向应用添加包依赖:
|
||||
|
||||
`flutter pub add {{package1 package2 ...}}`
|
||||
|
||||
- 从应用中移除包依赖:
|
||||
|
||||
`flutter pub remove {{package1 package2 ...}}`
|
||||
|
||||
- 升级到 `pubspec.yaml` 允许的包的最高版本:
|
||||
|
||||
`flutter pub upgrade {{package}}`
|
Reference in New Issue
Block a user