Skip to main content

path_provider_watchos 0.1.1 copy "path_provider_watchos: ^0.1.1" to clipboard
path_provider_watchos: ^0.1.1 copied to clipboard

watchOS implementation of the path_provider plugin, using dart:ffi over Foundation to resolve the temporary, application-support, documents, and cache directories.

path_provider_watchos #

The watchOS implementation of path_provider.

Scaffolded by flutter-watchos plugin port from path_provider_foundation, then finished by hand.

Usage #

This is a federated plugin implementation. Apps that already depend on path_provider and target watchOS only need to add this package alongside it:

dependencies:
  path_provider: ^2.1.6
  path_provider_watchos: ^0.1.0

The plugin registers automatically via Flutter's federated registry — no explicit imports required from app code.

Status #

Platform Implemented
Apple Watch (watchos) yes
Watch simulator (watchsimulator) yes

Not supported on watchOS #

These members of path_provider_platform_interface 2.1.3 throw or fail on watchOS. PORTING_REPORT.md lists every member under "Interface coverage".

Member On watchOS Why
getExternalStoragePath / getExternalStoragePaths / getExternalCachePaths throw UnsupportedError, as on iOS external storage is an Android concept

getDownloadsPath returns the app's NSDownloadsDirectory path, as on iOS. The directory is not created.

Example #

The example is path_provider's own example app, and example/integration_test/path_provider_test.dart is its official test, both unchanged, ported with flutter-watchos plugin port --include-example. There are no watchOS deviations.

License #

The FlutterWatch Authors under a BSD-3-Clause license. See LICENSE for the full text.

0
likes
140
points
1.27k
downloads

Documentation

API reference

Publisher

verified publisherflutterwatch.dev

Weekly Downloads

watchOS implementation of the path_provider plugin, using dart:ffi over Foundation to resolve the temporary, application-support, documents, and cache directories.

Homepage
Repository (GitHub)
View/report issues

Topics

#watchos #ffi #path-provider #filesystem

License

BSD-3-Clause (license)

Dependencies

ffi, flutter, path_provider_platform_interface

More

Packages that depend on path_provider_watchos

Packages that implement path_provider_watchos