Site icon Flutter Packages | Pub dev Packages – Flutter Mobile App World

Path Provider – A Flutter plugin for finding commonly used locations

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.

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.

Download Source Code on GitHub

https://github.com/flutter/plugins/tree/master/packages/path_provider

Exit mobile version