在尝试使用http软件包时,我始终收到以下错误。
我已经将软件包添加到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
答案 0 :(得分:0)
在终端运行flutter pub get