flutter 添加依赖的方式

发布时间 2023-10-30 17:59:00作者: vx_guanchaoguo0

配置文件

  • 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 packages dio