fix: Hotfix database migration

This commit is contained in:
Krille Fear 2021-11-30 22:13:40 +01:00
parent 585e3ca6da
commit f08a683000
2 changed files with 6 additions and 2 deletions

View File

@ -81,7 +81,11 @@ class FlutterFluffyBoxDatabase extends FluffyBoxDatabase {
if (!kIsWeb) {
Directory directory;
try {
directory = await getApplicationSupportDirectory();
if (Platform.isLinux) {
directory = await getApplicationSupportDirectory();
} else {
directory = await getApplicationDocumentsDirectory();
}
} catch (_) {
try {
directory = await getLibraryDirectory();

View File

@ -1,7 +1,7 @@
name: fluffychat
description: Chat with your friends.
publish_to: none
version: 1.0.0+1772
version: 1.0.1+1773
environment:
sdk: ">=2.11.0 <3.0.0"