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.
getApplicationSupportDirectoryis now supported using
nullinstead of throwing an exception if no external files directory is available.
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.2.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:
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 Aug 21, 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.