Viewing version 1.0.1. Open the latest package page.
path_provider_platform_interface
1.0.1A common platform interface for the path_provider plugin.
Readme
path_provider_platform_interface
A common platform interface for the path_provider plugin.
This interface allows platform-specific implementations of the path_provider
plugin, as well as the plugin itself, to ensure they are supporting the
same interface.
Usage
To implement a new platform-specific implementation of path_provider, extend
PathProviderPlatform with an implementation that performs the
platform-specific behavior, and when you register your plugin, set the default
PathProviderPlatform by calling
PathProviderPlatform.instance = MyPlatformPathProvider().
Note on breaking changes
Strongly prefer non-breaking changes (such as adding a method to the interface) over breaking changes for this package.
See https://flutter.dev/go/platform-interface-breaking-changes for a discussion on why a less-clean interface is preferable to a breaking change.
Changelog
1.0.1
- Rename enum to StorageDirectory for backwards compatibility.
1.0.0
- Initial release.
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'path_provider_platform_interface:1.0.1'pubspec.yaml
name: path_provider_platform_interface
description: A common platform interface for the path_provider plugin.
homepage: https://github.com/flutter/plugins/tree/master/packages/path_provider/path_provider_platform_interface
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version: 1.0.1
dependencies:
flutter:
sdk: flutter
meta: ^1.0.5
platform: ^2.0.0
plugin_platform_interface: ^1.0.1
dev_dependencies:
flutter_test:
sdk: flutter
pedantic: ^1.8.0
test: any
environment:
sdk: ">=2.0.0-dev.28.0 <3.0.0"
flutter: ">=1.10.0 <2.0.0"
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 1.0.0 | Cached · Upstream SHA-256 matched | Download | 1c91cf3b…c12c39 |
| 1.0.1 | Cached · Upstream SHA-256 matched | Download | 67561348…f12520 |
| 1.0.2 | Cached · Upstream SHA-256 matched | Download | f034a281…f113d3 |
| 1.0.3 | Cached · Upstream SHA-256 matched | Download | 573cd8a8…8a2bd6 |
| 1.0.4 | Cached · Upstream SHA-256 matched | Download | e06b2d36…bf5354 |
| 2.0.0-nullsafety | Cached · Upstream SHA-256 matched | Download | 93519ed7…0a6558 |
| 2.0.0 | Cached · Upstream SHA-256 matched | Download | 2e14fc47…89fa51 |
| 2.0.1 | Cached · Upstream SHA-256 matched | Download | c2af5a8a…b8a397 |
| 2.0.2 | Cached · Upstream SHA-256 matched | Download | c3251695…7ace9e |
| 2.0.3 | Cached · Upstream SHA-256 matched | Download | 3dc0d51b…878882 |
| 2.0.4 | Cached · Upstream SHA-256 matched | Download | 27dc7a22…da931d |
| 2.0.5 | Cached · Upstream SHA-256 matched | Download | f0abc8eb…b08e76 |
| 2.0.6 | Cached · Upstream SHA-256 matched | Download | 57585299…3165ec |
| 2.1.0 | Cached · Upstream SHA-256 matched | Download | bced5679…f9eb84 |
| 2.1.1 | Cached · Upstream SHA-256 matched | Download | 94b1e0dd…63265c |
| 2.1.2 | Cached · Upstream SHA-256 matched | Download | 88f5779f…6c2334 |
| 2.1.3 | Cached · Upstream SHA-256 matched | Download | 48483877…7c9dda |
Dependencies
flutter {
"sdk": "flutter"
}
meta "^1.0.5"
platform "^2.0.0"
plugin_platform_interface "^1.0.1"