fix documents path not found on linux
This commit is contained in:
@@ -38,6 +38,9 @@
|
||||
packages = with pkgs; [
|
||||
# Needed by flutter_secure_storage
|
||||
libsecret.dev
|
||||
|
||||
# Needed by path_provider on linux
|
||||
xdg-user-dirs
|
||||
];
|
||||
|
||||
processes.web-server = {
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ Future<void> _initializePlugins() async {
|
||||
// PDF rendering (especially needed for web)
|
||||
pdfrxFlutterInitialize();
|
||||
|
||||
// Local storage (not supported on web)
|
||||
// Local storage (not supported or necessary on web)
|
||||
if (!kIsWeb) {
|
||||
final dir = await getApplicationDocumentsDirectory();
|
||||
Hive.init(dir.path);
|
||||
|
||||
Reference in New Issue
Block a user