Viewing version 2.2.0. Open the latest package page.

path_provider_linux

2.2.0

Linux implementation of the path_provider plugin

Download archive

Readme

path_provider_linux

The linux implementation of path_provider.

Usage

This package is endorsed, which means you can simply use path_provider 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.

Changelog

2.2.0

  • Adds getApplicationCachePath() for storing app-specific cache files.

2.1.11

  • Removes obsolete null checks on non-nullable values.
  • Updates minimum supported SDK version to Flutter 3.3/Dart 2.18.

2.1.10

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

2.1.9

  • Updates links for the merge of flutter/plugins into flutter/packages.

2.1.8

  • Adds compatibility with xdg_directories 1.0.
  • Updates minimum Flutter version to 3.0.

2.1.7

  • Bumps ffi dependency to match path_provider_windows.

2.1.6

  • Fixes library_private_types_in_public_api, sort_child_properties_last and use_key_in_widget_constructors lint warnings.

2.1.5

  • Removes dependency on meta.

2.1.4

  • Fixes getApplicationSupportPath handling of applications where the application ID is not set.

2.1.3

  • Change getApplicationSupportPath from using executable name to application ID (if provided).
    • If the executable name based directory exists, continue to use that so existing applications continue with the same behaviour.

2.1.2

  • Fixes link in README.

2.1.1

  • Removed obsolete pluginClass: none from pubpsec.

2.1.0

  • Now getTemporaryPath returns the value of the TMPDIR environment variable primarily. If TMPDIR is not set, /tmp is returned.

2.0.2

  • Updated installation instructions in README.

2.0.1

  • Add implements to pubspec.yaml.
  • Add registerWith method to the main Dart class.

2.0.0

  • Migrate to null safety.

0.1.1+3

  • Update Flutter SDK constraint.

0.1.1+2

  • Log errors in the example when calls to the path_provider fail.

0.1.1+1

  • Check in linux/ directory for example/

0.1.1 - NOT PUBLISHED

  • Reverts changes on 0.1.0, which broke the tree.

0.1.0 - NOT PUBLISHED

  • This release updates getApplicationSupportPath to use the application ID instead of the executable name.
    • No migration is provided, so any older apps that were using this path will now have a different directory.

0.0.1+2

  • This release updates the example to depend on the endorsed plugin rather than relative path

0.0.1+1

  • This updates the readme and pubspec and example to reflect the endorsement of this implementation of path_provider

0.0.1

  • The initial implementation of path_provider for Linux
    • Implements getApplicationSupportPath, getApplicationDocumentsPath, getDownloadsPath, and getTemporaryPath

Installing

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

environment:
  sdk: ">=2.18.0 <4.0.0"
  flutter: ">=3.3.0"

flutter:
  plugin:
    implements: path_provider
    platforms:
      linux:
        dartPluginClass: PathProviderLinux

dependencies:
  ffi: ">=1.1.2 <3.0.0"
  flutter:
    sdk: flutter
  path: ^1.8.0
  path_provider_platform_interface: ^2.1.0
  xdg_directories: ">=0.2.0 <2.0.0"

dev_dependencies:
  flutter_test:
    sdk: flutter

Version history

VersionPublishedArchiveSHA-256
0.0.1Cached · Upstream SHA-256 matchedDownload6552aaac…5e2089
0.0.1+1Cached · Upstream SHA-256 matchedDownloadb9d28d93…ddac9f
0.0.1+2Cached · Upstream SHA-256 matchedDownload739b0087…3964e5
0.2.0-nullsafetyCached · Upstream SHA-256 matchedDownload7bd0a063…5ebf98
2.0.0Cached · Upstream SHA-256 matchedDownload938d2b65…27c708
2.0.2Cached · Upstream SHA-256 matchedDownloadf8d4b3ba…948c93
2.1.0Cached · Upstream SHA-256 matchedDownload96af2381…e64939
2.1.1Cached · Upstream SHA-256 matchedDownload85b6f96f…8aac35
2.1.2Cached · Upstream SHA-256 matchedDownload368c48ae…c0593f
2.1.3Cached · Upstream SHA-256 matchedDownloadcf3b2c34…272f51
2.1.4Cached · Upstream SHA-256 matchedDownloade4614279…2e9be1
2.1.5Cached · Upstream SHA-256 matchedDownload1e109f4d…4e9621
2.1.6Cached · Upstream SHA-256 matchedDownload367b9311…91e074
2.1.7Cached · Upstream SHA-256 matchedDownloadab0987bf…26c379
2.1.8Cached · Upstream SHA-256 matchedDownload2e32f164…31fbd9
2.1.9Cached · Upstream SHA-256 matchedDownload525ad5e0…86429a
2.1.10Cached · Upstream SHA-256 matchedDownload2ae08f22…f10ad1
2.1.11Cached · Upstream SHA-256 matchedDownloadffbb8cc9…9b3b57
2.2.0Cached · Upstream SHA-256 matchedDownloadba2b77f0…a007b3
2.2.1Cached · Upstream SHA-256 matchedDownloadf7a1fe3a…ac3279
2.2.2Cached · Upstream SHA-256 matchedDownload58c2005f…2b5c16

Dependencies

ffi "\u003e=1.1.2 \u003c3.0.0"

flutter { "sdk": "flutter" }

path "^1.8.0"

path_provider_platform_interface "^2.1.0"

xdg_directories "\u003e=0.2.0 \u003c2.0.0"