diff --git a/lib/database/app_database.dart b/lib/database/app_database.dart index e732242e..3a2b9059 100644 --- a/lib/database/app_database.dart +++ b/lib/database/app_database.dart @@ -225,7 +225,7 @@ LazyDatabase _openConnection() { } } - return NativeDatabase(file, setup: (db) { + return NativeDatabase.createInBackground(file, setup: (db) { db.execute('PRAGMA journal_mode=WAL'); db.execute('PRAGMA synchronous=NORMAL'); });