How to do a database query with SQFlite in Flutter
问题 How do you query data from SQLite database in Flutter using the SQFlite plugin? I have been working on learning this recently, so I am adding my answer below as a means to help me learn and also as a quick reference for others in the future. 回答1: Add the dependencies Open pubspec.yaml and in the dependencies section add the following lines: sqflite: ^1.0.0 path_provider: ^0.4.1 The sqflite is the SQFlite plugin of course and the path_provider will help us get the user directory on Android and