mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-05-14 02:27:40 +02:00
fix(windows): Make database on windows persistent
Took 16 minutes
This commit is contained in:
parent
5e4a4eab8d
commit
3e2c69ed1a
@ -71,7 +71,8 @@ Future<Database> constructDb(
|
|||||||
} else if (Platform.isWindows) {
|
} else if (Platform.isWindows) {
|
||||||
debugPrint('[Moor] using Windows desktop moor');
|
debugPrint('[Moor] using Windows desktop moor');
|
||||||
open.overrideFor(OperatingSystem.windows, _openOnWindows);
|
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');
|
throw Exception('Platform not supported');
|
||||||
}
|
}
|
||||||
|
@ -647,7 +647,7 @@ packages:
|
|||||||
name: path_provider
|
name: path_provider
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.6.18"
|
version: "1.6.21"
|
||||||
path_provider_linux:
|
path_provider_linux:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -38,7 +38,7 @@ dependencies:
|
|||||||
flutter_local_notifications: ^1.4.3
|
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
|
# 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
|
matrix_link_text: ^0.3.1
|
||||||
path_provider: ^1.5.1
|
path_provider: ^1.6.21
|
||||||
webview_flutter: ^0.3.19+9
|
webview_flutter: ^0.3.19+9
|
||||||
share: ^0.6.3+5
|
share: ^0.6.3+5
|
||||||
flutter_secure_storage: ^3.3.4
|
flutter_secure_storage: ^3.3.4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user