# file_selector_platform_interface 2.7.0

A common platform interface for the file_selector plugin.




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'file_selector_platform_interface:2.7.0'
```
Published: 2025-11-10T15:46:08.944549Z
Expected archive SHA-256: 35e0bd61ebcdb91a3505813b055b09b79dfdc7d0aee9c09a7ba59ae4bb13dc85

Available in cache; verification: upstream_checksum
## Direct dependencies
- cross_file: ^0.3.0
- flutter: map[sdk:flutter]
- http: >=0.13.0 <2.0.0
- plugin_platform_interface: ^2.1.7

## Package README (untrusted upstream documentation)
# file_selector_platform_interface

A common platform interface for the `file_selector` plugin.

This interface allows platform-specific implementations of the `file_selector`
plugin, as well as the plugin itself, to ensure they are supporting the
same interface.

# Usage

To implement a new platform-specific implementation of `file_selector`, extend
[`FileSelectorPlatform`][2] with an implementation that performs the
platform-specific behavior, and when you register your plugin, set the default
`FileSelectorPlatform` by calling
`FileSelectorPlatform.instance = MyPlatformFileSelector()`.

# 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.

[1]: ../file_selector
[2]: lib/file_selector_platform_interface.dart

## Changelog
## 2.7.0

* Adds `canCreateDirectories` parameter to `FileDialogOptions` to control whether directory creation is enabled during path selection.
* Updates minimum supported SDK version to Flutter 3.29/Dart 3.7.

## 2.6.2

* Updates minimum required plugin_platform_interface version to 2.1.7.
* Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.

## 2.6.1

* Adds pub topics to package metadata.
* Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.

## 2.6.0

* Adds `getSaveLocation` and deprecates `getSavePath`.

## 2.5.1

* Adds compatibility with `http` 1.0.
* Updates minimum supported SDK version to Flutter 3.3/Dart 2.18.

## 2.5.0

* Deprecates `macUTIs` in favor of `uniformTypeIdentifiers`.
* Aligns Dart and Flutter SDK constraints.

## 2.4.1

* Updates links for the merge of flutter/plugins into flutter/packages.
* Updates minimum Flutter version to 3.0.

## 2.4.0

* Adds `getDirectoryPaths` method to the interface.

## 2.3.0

* Replaces `macUTIs` with `uniformTypeIdentifiers`. `macUTIs` is available as an alias, but will be deprecated in a future release.

## 2.2.0

* Makes `XTypeGroup`'s constructor constant.

## 2.1.1

* Updates imports for `prefer_relative_imports`.
* Updates minimum Flutter version to 2.10.

## 2.1.0

* Adds `allowsAny` to `XTypeGroup` as a simple and future-proof way of identifying
  wildcard groups.

## 2.0.4

* Removes dependency on `meta`.

## 2.0.3

* Minor code cleanup for new analysis rules.
* Update to use the `verify` method introduced in plugin_platform_interface 2.1.0.

## 2.0.2

* Update platform_plugin_interface version requirement.

## 2.0.1

* Replace extensions with leading dots.

## 2.0.0

* Migration to null-safety

## 1.0.3+1

* Bump the [cross_file](https://pub.dev/packages/cross_file) package version.

## 1.0.3

* Update Flutter SDK constraint.

## 1.0.2

* Replace locally defined `XFile` types with the versions from the [cross_file](https://pub.dev/packages/cross_file) package.

## 1.0.1

* Allow type groups that allow any file.

## 1.0.0

* Initial release.







 
