diff --git a/lib/utils/database/mobile.dart b/lib/utils/database/mobile.dart index 619781f4..c1fd98d4 100644 --- a/lib/utils/database/mobile.dart +++ b/lib/utils/database/mobile.dart @@ -71,7 +71,8 @@ Future constructDb( } else if (Platform.isWindows) { debugPrint('[Moor] using Windows desktop moor'); open.overrideFor(OperatingSystem.windows, _openOnWindows); - return Database(moor.VmDatabase.memory()); + final appDocDir = await getApplicationSupportDirectory(); + return Database(moor.VmDatabase(File('${appDocDir.path}/$filename'))); } throw Exception('Platform not supported'); } diff --git a/pubspec.lock b/pubspec.lock index cc8eab9f..043f3e03 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -647,7 +647,7 @@ packages: name: path_provider url: "https://pub.dartlang.org" source: hosted - version: "1.6.18" + version: "1.6.21" path_provider_linux: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 5dfbe566..094f0f98 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -38,7 +38,7 @@ dependencies: flutter_local_notifications: ^1.4.3 # desktop_notifications: ^0.0.0-dev.4 // Currently blocked by: https://github.com/canonical/desktop_notifications.dart/issues/5 matrix_link_text: ^0.3.1 - path_provider: ^1.5.1 + path_provider: ^1.6.21 webview_flutter: ^0.3.19+9 share: ^0.6.3+5 flutter_secure_storage: ^3.3.4