path_provider 2.0.8 copy "path_provider: ^2.0.8" to clipboard
path_provider: ^2.0.8 copied to clipboard

outdated

Flutter plugin for getting commonly used locations on host platform file systems, such as the temp and app data directories.

path_provider #

pub package

A Flutter plugin for finding commonly used locations on the filesystem. Supports Android, iOS, Linux, macOS and Windows. Not all methods are supported on all platforms.

Usage #

To use this plugin, add path_provider as a dependency in your pubspec.yaml file.

Example #

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.

Usage in tests #

path_provider now uses a PlatformInterface, meaning that not all platforms share the a single PlatformChannel-based implementation. With that change, tests should be updated to mock PathProviderPlatform rather than PlatformChannel.

See this path_provider test for an example.

4628
likes
0
pub points
100%
popularity

Publisher

verified publisherflutter.dev

Flutter plugin for getting commonly used locations on host platform file systems, such as the temp and app data directories.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, path_provider_android, path_provider_ios, path_provider_linux, path_provider_macos, path_provider_platform_interface, path_provider_windows

More

Packages that depend on path_provider