From 843faee4c550fc240f9a14c03d68814f2497728c Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Wed, 25 Mar 2026 20:50:35 +0100 Subject: [PATCH] fix: run sqlite on background isolate --- lib/database/app_database.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); });