如何在flutter中添加Sqflite依赖?
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.0
sqflite: any
english_words: "^3.1.0"
最佳答案
这是正确的做法。尝试运行 packages get
(再次)。
您可以使用确切版本 sqflite: ^0.8.9
来指定版本, 一个范围 sqflite: >=0.8.0 <0.9.9
或者只是 sqflite: any
,这将始终为您提供最新版本。
有一个深入guide on this topic可用。
关于Flutter 依赖错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50153333/