fix: Hotfix database migration
This commit is contained in:
parent
b248b48728
commit
d61e224f1c
2 changed files with 6 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue