blob: 944137f4631c3d5af41f3e5911f3dc9c7c546727 [file] [log] [blame] [view]
# path_provider
[![pub package](https://img.shields.io/pub/v/path_provider.svg)](https://pub.dartlang.org/packages/path_provider)
A Flutter plugin for finding commonly used locations on the filesystem. Supports iOS and Android.
## Usage
To use this plugin, add `path_provider` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).
### Example
``` dart
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.