Viewing version 2.0.3. Open the latest package page.
path_provider_platform_interface
2.0.3A 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
2.0.3
- Removes dependency on
meta.
2.0.2
- Update to use the
verifymethod introduced in plugin_platform_interface 2.1.0.
2.0.1
- Update platform_plugin_interface version requirement.
2.0.0
- Migrate to null safety.
1.0.5
- Update Flutter SDK constraint.
1.0.4
- Remove unused
testdependency.
1.0.3
- Increase upper range of
package:platformconstraint to allow 3.X versions.
1.0.2
- Update lower bound of dart dependency to 2.1.0.
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:2.0.3'pubspec.yaml
name: path_provider_platform_interface
description: A common platform interface for the path_provider plugin.
repository: https://github.com/flutter/plugins/tree/master/packages/path_provider/path_provider_platform_interface
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+path_provider%22
# 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: 2.0.3
environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=2.0.0"
dependencies:
flutter:
sdk: flutter
platform: ^3.0.0
plugin_platform_interface: ^2.1.0
dev_dependencies:
flutter_test:
sdk: flutter
pedantic: ^1.10.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"
}
platform "^3.0.0"
plugin_platform_interface "^2.1.0"