From 65c60aeba08250ff0fbf45388a4fd99b0840dc64 Mon Sep 17 00:00:00 2001 From: peter-kal Date: Sat, 24 Aug 2024 21:00:14 +0300 Subject: [PATCH] switch to getAppSupport.. --- lib/data/settings_storage/db_settings.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/data/settings_storage/db_settings.dart b/lib/data/settings_storage/db_settings.dart index ce42d3b..61c52e3 100644 --- a/lib/data/settings_storage/db_settings.dart +++ b/lib/data/settings_storage/db_settings.dart @@ -50,7 +50,7 @@ class AppDatabase extends _$AppDatabase { LazyDatabase _openConnection() { return LazyDatabase(() async { - final dbFolder = await getApplicationDocumentsDirectory(); + final dbFolder = await getApplicationSupportDirectory(); final file = File(p.join(dbFolder.path, 'db.sqlite')); return NativeDatabase.createInBackground(file); });