📅  最后修改于: 2022-03-11 15:05:34.951000             🧑  作者: Mango
createDatabase() async {
String databasesPath = await getDatabasesPath();
String dbPath = join(databasesPath, 'my.db');
var database = await openDatabase(dbPath, version: 1, onCreate: populateDb);
return database;
}