这是我在 pubspec.yaml 文件中添加的 image_picker
dependencies:
flutter:
sdk: flutter
url_launcher: ^4.0.3
google_maps_flutter: ^0.0.3+3
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
image_picker:
我无法在我的类(class)中导入图像选择器
最佳答案
确保运行flutter packages get
如果仍然无法正常工作,请重新启动 IDE。
关于Flutter无法导入库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54123503/