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