flutter 添加依赖的方式
添加仓库源
FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
PUB_HOSTED_URL=https://pub.flutter-io.cn
配置文件
- pubspec.yaml
dependencies:
flutter:
sdk: flutter
english_words: ^4.0.0
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
path_provider: ^2.0.2
dio: ^5.3.3
命令行
flutter pub add dio
本文来自博客园,作者:vx_guanchaoguo0,转载请注明原文链接:https://www.cnblogs.com/guanchaoguo/p/17798465.html