A Flutter plugin for finding commonly used locations on the filesystem. Supports iOS and Android.
To use this plugin, add
path_provider as a dependency in your pubspec.yaml file.
Directory tempDir = await getTemporaryDirectory(); String tempPath = tempDir.path; Directory appDocDir = await getApplicationDocumentsDirectory(); String appDocPath = appDocDir.path;
Please see the example app of this plugin for a full example.
getApplicationDocumentsDirectoryto suggest using
getApplicationSupportDirectoryon iOS and
getTemporaryDirectoryto suggest using it for caches of files that do not need to be backed up.
Demonstrates how to use the path_provider plugin.
For help getting started with Flutter, view our online documentation.
Add this to your package's pubspec.yaml file:
dependencies: path_provider: ^1.1.0
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|1.1.0||May 8, 2019|
|1.0.0||May 3, 2019|
|0.5.0+1||Feb 8, 2019|
|0.5.0||Jan 24, 2019|
|0.4.1||Jun 1, 2018|
|0.4.0||Mar 9, 2018|
|0.3.1||Jan 12, 2018|
|0.3.0||Dec 20, 2017|
|0.2.2||Dec 4, 2017|
|0.2.1+1||May 17, 2017|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on May 22, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.