Linux Support #75
-
Is there a plan for adding support for Linux?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Well, noticed that it couldn't find a directory to save it with the following code. FlutterMapTileCaching.initialise(await RootDirectory.temporaryCache); It works with custom final tempDir = await getTemporaryDirectory();
FlutterMapTileCaching.initialise(RootDirectory.custom(tempDir)); |
Beta Was this translation helpful? Give feedback.
-
Hey @buraktabn,
The error you had may occur when installing this package before a full app restart. A full app restart usually resolves issues similar to that one. Note you may run into two issues with your implementation:
If this library has helped you in a commercial situation, please consider donating - every little helps! If you can't please leave a star and a like :) |
Beta Was this translation helpful? Give feedback.
Hey @buraktabn,
RootDirectory.normalCache
andRootDirectory.temporaryCache
usegetApplicationDocumentsDirectory
andgetTemporaryDirectory
(from 'path_provider') respectively behind the scenes. As you can see from the official table below, both of these should be supported by 'path_provider' - indeed, if you are usinggetTemporaryDirectory
like in your second example, that's 'path_provider'.The error you had may occur when installing this package before a full app restart. A full app restart usually resolves issues similar to that one.
Note you may run into two issues with your implementation:
temporaryCache
/getTemporaryDirectory
usually isn't recommended because they can be cleare…