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