无法在Flutter中使用http包

时间:2019-05-22 01:31:54

标签: flutter

在尝试使用http软件包时,我始终收到以下错误。

enter image description here

我已经将软件包添加到pubspec.yaml中:

dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2 
  http: ^0.12.0+2 

1 个答案:

答案 0 :(得分:0)

在终端运行flutter pub get