Viewing version 0.9.5+1. Open the latest package page.

file_selector_macos

0.9.5+1

macOS implementation of the file_selector plugin.

Download archive

Readme

file_selector_macos

The macOS implementation of file_selector.

Usage

This package is endorsed, which means you can simply use file_selector normally. This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.

However, if you import this package to use any of its APIs directly, you should add it to your pubspec.yaml as usual.

Entitlements

You will need to add an entitlement for either read-only access:

	<key>com.apple.security.files.user-selected.read-only</key>
	<true/>

or read/write access:

	<key>com.apple.security.files.user-selected.read-write</key>
	<true/>

depending on your use case.

Changelog

0.9.5+1

  • Updates pigeon dev_dependency to ^27.3.2 for analyzer 14 compatibility.
  • Updates minimum supported SDK version to Flutter 3.38/Dart 3.10.

0.9.5

  • Adds getDirectoryPathWithOptions and getDirectoryPathsWithOptions implementations.

0.9.4+6

  • Updates to Pigeon 26.

0.9.4+5

  • Updates minimum supported version to macOS 10.15.
  • Updates minimum supported SDK version to Flutter 3.35/Dart 3.9.

0.9.4+4

  • Updates to Pigeon 25.5.0.

0.9.4+3

  • Updates configuration to not set nameFieldStringValue for NSOpenPanel.
  • Updates minimum supported SDK version to Flutter 3.27/Dart 3.6.

0.9.4+2

  • Updates Pigeon for non-nullable collection type support.

0.9.4+1

  • Adds privacy manifest.
  • Updates minimum supported SDK version to Flutter 3.19/Dart 3.3.

0.9.4

  • Adds Swift Package Manager compatibility.
  • Updates minimum supported SDK version to Flutter 3.13/Dart 3.1.

0.9.3+3

  • Fixes handling of unknown file extensions on macOS 11+.

0.9.3+2

  • Adds pub topics to package metadata.
  • Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
  • Migrates styleFrom usage in examples off of deprecated primary and onPrimary parameters.

0.9.3+1

  • Updates to the latest version of pigeon.

0.9.3

  • Adds getSaveLocation and deprecates getSavePath.
  • Updates minimum supported macOS version to 10.14.

0.9.2

  • Adds support for MIME types on macOS 11+.

0.9.1+1

  • Updates references to the deprecated macUTIs.

0.9.1

  • Adds getDirectoryPaths implementation.

0.9.0+8

  • Updates pigeon for null value handling fixes.
  • Updates minimum Flutter version to 3.3.

0.9.0+7

  • Updates to pigeon version 9.

0.9.0+6

  • Clarifies explanation of endorsement in README.
  • Aligns Dart and Flutter SDK constraints.

0.9.0+5

  • Updates links for the merge of flutter/plugins into flutter/packages.
  • Updates example code for use_build_context_synchronously lint.
  • Updates minimum Flutter version to 3.0.

0.9.0+4

  • Converts platform channel to Pigeon.

0.9.0+3

  • Changes XTypeGroup initialization from final to const.

0.9.0+2

  • Updates imports for prefer_relative_imports.
  • Updates minimum Flutter version to 2.10.

0.9.0+1

  • Updates README for endorsement.
  • Updates flutter_test to be a dev_dependencies entry.

0.9.0

  • BREAKING CHANGE: Methods that take XTypeGroups now throw an ArgumentError if any group is not a wildcard (all filter types null or empty), but doesn't include any of the filter types supported by macOS.
  • Ignores deprecation warnings for upcoming styleFrom button API changes.

0.8.2+2

  • Updates references to the obsolete master branch.

0.8.2+1

  • Removes unnecessary imports.
  • Fixes library_private_types_in_public_api, sort_child_properties_last and use_key_in_widget_constructors lint warnings.

0.8.2

  • Moves source to flutter/plugins.
  • Adds native unit tests.
  • Converts native implementation to Swift.
  • Switches to an internal method channel implementation.

0.0.4+1

  • Update README

0.0.4

  • Treat empty filter lists the same as null.

0.0.3

  • Fix README

0.0.2

  • Update SDK constraint to signal compatibility with null safety.

0.0.1

  • Initial macOS implementation of file_selector.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'file_selector_macos:0.9.5+1'
pubspec.yaml
name: file_selector_macos
description: macOS implementation of the file_selector plugin.
repository: https://github.com/flutter/packages/tree/main/packages/file_selector/file_selector_macos
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+file_selector%22
version: 0.9.5+1

environment:
  sdk: ^3.10.0
  flutter: ">=3.38.0"

flutter:
  plugin:
    implements: file_selector
    platforms:
      macos:
        dartPluginClass: FileSelectorMacOS
        pluginClass: FileSelectorPlugin

dependencies:
  cross_file: ^0.3.1
  file_selector_platform_interface: ^2.7.0
  flutter:
    sdk: flutter
  meta: ^1.10.0

dev_dependencies:
  flutter_test:
    sdk: flutter
  pigeon: ^27.3.2

topics:
  - files
  - file-selection
  - file-selector

Version history

VersionPublishedArchiveSHA-256
0.0.1On demandDownloadb40cd337…c5e531
0.0.2On demandDownloadd27c5395…5640b4
0.0.3On demandDownloadbe3f10c3…4f525d
0.0.4On demandDownload6d5a9bed…b9a720
0.0.4+1On demandDownload61137052…a95663
0.8.2On demandDownload2214a6ec…554446
0.8.2+1On demandDownloada6caa2c7…fbedcf
0.8.2+2On demandDownloade87311d7…e3da68
0.9.0On demandDownload5aa08c37…9ab694
0.9.0+1On demandDownload5fd82397…9bfe27
0.9.0+2On demandDownload6c77f6eb…85f6ee
0.9.0+3On demandDownloade69414ef…b12d08
0.9.0+4On demandDownload6fd5242e…941109
0.9.0+5On demandDownload9fc34f91…f60f20
0.9.0+6On demandDownloadf97fc951…c985c5
0.9.0+7On demandDownload89d24ed1…03202b
0.9.0+8On demandDownload41800c76…394b7a
0.9.1On demandDownload83fa1750…9c93f0
0.9.1+1On demandDownload48ec16f6…3c8796
0.9.2On demandDownload6290eec2…423a3a
0.9.3On demandDownload7a6f1ae6…6f41ce
0.9.3+1On demandDownload4ada5328…909412
0.9.3+2On demandDownload182c3f83…a82c72
0.9.3+3On demandDownloadb15c3da8…6594d6
0.9.4On demandDownloadf42eacb8…55d385
0.9.4+1On demandDownloadcb284e26…2bf75c
0.9.4+2On demandDownload271ab998…941bfc
0.9.4+3On demandDownload8c9250b2…0fd711
0.9.4+4On demandDownload19124ff4…07b60c
0.9.4+5On demandDownload88707a3b…ab23f2
0.9.4+6On demandDownload44f24d10…c6d747
0.9.5On demandDownload5e0bbe9c…4d618a
0.9.5+1Cached · Upstream SHA-256 matchedDownloadd57c6236…5ae0f4
0.9.5+2Cached · Upstream SHA-256 matchedDownloadd785431f…6fd7ba

Dependencies

cross_file "^0.3.1"

file_selector_platform_interface "^2.7.0"

flutter { "sdk": "flutter" }

meta "^1.10.0"