Viewing version 1.5.1. Open the latest package page.

path_provider

1.5.1

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

Download archive

Readme

path_provider

pub package

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.

Changelog

1.5.1

  • Remove the deprecated author: field from pubspec.yaml
  • Migrate the plugin to the pubspec platforms manifest.
  • Require Flutter SDK 1.10.0 or greater.

1.5.0

  • Add macOS support.

1.4.5

  • Add support for v2 plugins APIs.

1.4.4

  • Update driver tests in the example app to e2e tests.

1.4.3

  • Update driver tests in the example app to e2e tests.
  • Add missing DartDocs and a lint to prevent further regressions.

1.4.2

  • Update and migrate iOS example project by removing flutter_assets, change "English" to "en", remove extraneous xcconfigs, update to Xcode 11 build settings, remove ARCHS, and build pods as libraries instead of frameworks.

1.4.1

  • Remove AndroidX warnings.

1.4.0

  • Support retrieving storage paths on Android devices with multiple external storage options. This adds a new class AndroidEnvironment that shadows the directory names from Androids android.os.Environment class.
  • Fixes getLibraryDirectory semantics & tests.

1.3.1

  • Define clang module for iOS.

1.3.0

  • Added iOS-only support for getLibraryDirectory.
  • Update integration tests and example test.
  • Update example app UI to use a ListView show the list of content.
  • Update .gitignore to include Xcode build output folder **/DerivedData/

1.2.2

  • Correct the integration test for Android's getApplicationSupportDirectory call.
  • Introduce setMockPathProviderPlatform for API for tests.
  • Adds missing unit and integration tests.

1.2.1

  • Fix fall through bug.

1.2.0

  • On Android, getApplicationSupportDirectory is now supported using getFilesDir.
  • getExternalStorageDirectory now returns null instead of throwing an exception if no external files directory is available.

1.1.2

  • getExternalStorageDirectory now uses getExternalFilesDir on Android.

1.1.1

  • Cast error codes as longs in iOS error strings to ensure compatibility between arm32 and arm64.

1.1.0

  • Added getApplicationSupportDirectory.
  • Updated documentation for getApplicationDocumentsDirectory to suggest using getApplicationSupportDirectory on iOS and getExternalStorageDirectory on Android.
  • Updated documentation for getTemporaryDirectory to suggest using it for caches of files that do not need to be backed up.
  • Updated integration tests and example to reflect the above changes.

1.0.0

  • Added integration tests.

0.5.0+1

  • Log a more detailed warning at build time about the previous AndroidX migration.

0.5.0

  • Breaking change. Migrate from the deprecated original Android Support Library to AndroidX. This shouldn't result in any functional changes, but it requires any Android apps using this plugin to also migrate if they're using the original support library.

0.4.1

  • Updated Gradle tooling to match Android Studio 3.1.2.

0.4.0

  • Breaking change. Set SDK constraints to match the Flutter beta release.

0.3.1

  • Simplified and upgraded Android project template to Android SDK 27.
  • Updated package description.

0.3.0

  • Breaking change. Upgraded to Gradle 4.1 and Android Studio Gradle plugin 3.0.1. Older Flutter projects need to upgrade their Gradle setup as well in order to use this version of the plugin. Instructions can be found here.

0.2.2

  • Add FLT prefix to iOS types

0.2.1+1

  • Updated README

0.2.1

  • Add function to determine external storage directory.

0.2.0

0.1.3

  • Upgrade Android SDK Build Tools to 25.0.3.

0.1.2

  • Add test.

0.1.1

  • Change to README.md.

0.1.0

  • Initial Open Source release.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'path_provider:1.5.1'
pubspec.yaml
name: path_provider
description: Flutter plugin for getting commonly used locations on the Android &
  iOS file systems, such as the temp and app data directories.
homepage: https://github.com/flutter/plugins/tree/master/packages/path_provider
version: 1.5.1

flutter:
  plugin:
    platforms:
      android:
        package: io.flutter.plugins.pathprovider
        pluginClass: PathProviderPlugin
      ios:
        pluginClass: FLTPathProviderPlugin

dependencies:
  flutter:
    sdk: flutter
  platform: ^2.0.0
  meta: ^1.0.5

dev_dependencies:
  e2e: ^0.2.1
  flutter_test:
    sdk: flutter
  flutter_driver:
    sdk: flutter
  test: any
  uuid: "^1.0.0"

environment:
  sdk: ">=2.0.0-dev.28.0 <3.0.0"
  flutter: ">=1.10.0 <2.0.0"

Version history

VersionPublishedArchiveSHA-256
0.1.0Cached · Upstream SHA-256 matchedDownloada6dd5ca3…371e4f
0.1.1Cached · Upstream SHA-256 matchedDownload6e9d01a6…d56be8
0.1.2Cached · Upstream SHA-256 matchedDownloadb5639d4e…416582
0.1.3Cached · Upstream SHA-256 matchedDownloade72e51b1…d443f9
0.2.0Cached · Upstream SHA-256 matchedDownload47354984…847777
0.2.1+1Cached · Upstream SHA-256 matchedDownloade442ada1…472931
0.2.2Cached · Upstream SHA-256 matchedDownload744b92f4…466d49
0.3.0Cached · Upstream SHA-256 matchedDownload92364071…6ce731
0.3.1Cached · Upstream SHA-256 matchedDownloadfe8250b5…c651ee
0.4.0Cached · Upstream SHA-256 matchedDownload7abb12c0…1b8701
0.4.1Cached · Upstream SHA-256 matchedDownloadb1938bf0…0c0edb
0.5.0Cached · Upstream SHA-256 matchedDownload63c1a6da…87ab0d
0.5.0+1Cached · Upstream SHA-256 matchedDownloadc100f370…40aa81
1.0.0Cached · Upstream SHA-256 matchedDownload8c0ff4b1…f4e300
1.1.0Cached · Upstream SHA-256 matchedDownload651ba333…bc960e
1.1.2Cached · Upstream SHA-256 matchedDownload22ddd638…51ea11
1.2.0Cached · Upstream SHA-256 matchedDownload2dc54a64…155580
1.2.2Cached · Upstream SHA-256 matchedDownloade5146d39…67a8e9
1.3.0Cached · Upstream SHA-256 matchedDownload94c743f4…6db59d
1.3.1Cached · Upstream SHA-256 matchedDownload6ace780d…b7709b
1.4.0Cached · Upstream SHA-256 matchedDownload267c49ff…affce0
1.4.2Cached · Upstream SHA-256 matchedDownload29aae7fd…9b07fe
1.4.4Cached · Upstream SHA-256 matchedDownloadd760ed42…bec34b
1.4.5Cached · Upstream SHA-256 matchedDownload7e75d8ed…ed2b06
1.5.0Cached · Upstream SHA-256 matchedDownload088c9b67…3350dd
1.5.1Cached · Upstream SHA-256 matchedDownloadcb68b302…6b9eae
1.6.0Cached · Upstream SHA-256 matchedDownloadc6cf9a11…6c952b
1.6.1Cached · Upstream SHA-256 matchedDownload7f141b48…ef8766
1.6.4Cached · Upstream SHA-256 matchedDownload11628c3b…5a4103
1.6.5Cached · Upstream SHA-256 matchedDownloadb2cf36ac…221380
1.6.7Cached · Upstream SHA-256 matchedDownloadb0715a1d…3e3dd9
1.6.8Cached · Upstream SHA-256 matchedDownloadbd491304…cc7d41
1.6.9Cached · Upstream SHA-256 matchedDownload2587a4ee…1f0c37
1.6.10Cached · Upstream SHA-256 matchedDownload6536e4b0…c17edf
1.6.11Cached · Upstream SHA-256 matchedDownloadd5aeaf96…d48064
1.6.14Cached · Upstream SHA-256 matchedDownload7b830373…569ea4
1.6.16Cached · Upstream SHA-256 matchedDownload965977f5…f4f436
1.6.17Cached · Upstream SHA-256 matchedDownload5d718047…027ba4
1.6.18Cached · Upstream SHA-256 matchedDownload1a1ff1f7…688b86
1.6.21Cached · Upstream SHA-256 matchedDownload181aa64f…fb0a32
1.6.22Cached · Upstream SHA-256 matchedDownload447c78b0…681b93
1.6.24Cached · Upstream SHA-256 matchedDownload12b6834c…bdb86f
1.6.27Cached · Upstream SHA-256 matchedDownloada7e09f3a…22897b
1.6.28Cached · Upstream SHA-256 matchedDownload90ea9260…40fa85
2.0.0-nullsafetyCached · Upstream SHA-256 matchedDownloadca4af531…2089b4
2.0.0-nullsafety.1Cached · Upstream SHA-256 matchedDownload4cf0f280…f29693
2.0.0Cached · Upstream SHA-256 matchedDownload5e9a353e…a62a50
2.0.1Cached · Upstream SHA-256 matchedDownloadaa1b3572…3edfe4
2.0.2Cached · Upstream SHA-256 matchedDownloadcfdc261c…f3605d
2.0.3Cached · Upstream SHA-256 matchedDownload101e7244…578bba
2.0.4Cached · Upstream SHA-256 matchedDownload7a692915…7b491e
2.0.5Cached · Upstream SHA-256 matchedDownloadb6db8bde…31b6b0
2.0.6Cached · Upstream SHA-256 matchedDownload47a60af9…b13d2d
2.0.7Cached · Upstream SHA-256 matchedDownloaddf05e975…1017f3
2.0.8Cached · Upstream SHA-256 matchedDownloaddb1cf6c3…80dfc6
2.0.9Cached · Upstream SHA-256 matchedDownloade92dee4d…797568
2.0.10Cached · Upstream SHA-256 matchedDownload3f6e0d69…30ea37
2.0.11Cached · Upstream SHA-256 matchedDownload050e8e85…d372dd
2.0.12Cached · Upstream SHA-256 matchedDownloaddcea5feb…ddec95
2.0.13Cached · Upstream SHA-256 matchedDownload04890b99…d2b6f9
2.0.14Cached · Upstream SHA-256 matchedDownloadc7edf822…e6aad4
2.0.15Cached · Upstream SHA-256 matchedDownload30878137…0acaa2
2.1.0Cached · Upstream SHA-256 matchedDownload909b8483…6467a0
2.1.1Cached · Upstream SHA-256 matchedDownloada1aa8aaa…208aaa
2.1.2Cached · Upstream SHA-256 matchedDownloadb2721793…aa078b
2.1.3Cached · Upstream SHA-256 matchedDownloadc9e7d3a4…8bb161
2.1.4Cached · Upstream SHA-256 matchedDownloadfec0d612…1bf378
2.1.5Cached · Upstream SHA-256 matchedDownload50c5dd5b…55bbcd
2.1.6Cached · Upstream SHA-256 matchedDownloada7f4874f…884825

Dependencies

flutter { "sdk": "flutter" }

meta "^1.0.5"

platform "^2.0.0"