shared_preferences_linux

2.4.1

Linux implementation of the shared_preferences plugin

Download archive

Readme

shared_preferences_linux

The Linux implementation of shared_preferences.

Usage

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

  • Fixes getStringList returning immutable list.
  • Fixes getStringList cast error.
  • Updates minimum supported SDK version to Flutter 3.19/Dart 3.3.

2.4.0

  • Adds SharedPreferencesAsyncLinux API.
  • Updates minimum supported SDK version to Flutter 3.16/Dart 3.2.

2.3.2

  • Updates package:file version constraints.

2.3.1

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

2.3.0

  • Adds clearWithParameters and getAllWithParameters methods.
  • Updates minimum supported SDK version to Flutter 3.3/Dart 2.18.

2.2.0

  • Adds getAllWithPrefix and clearWithPrefix methods.

2.1.5

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

2.1.4

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

2.1.3

  • Updates code for stricter lint checks.

2.1.2

  • Updates code for stricter lint checks.
  • Updates code for no_leading_underscores_for_local_identifiers lint.
  • Updates minimum Flutter version to 2.10.

2.1.1

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

2.1.0

  • Deprecated SharedPreferencesWindows.instance in favor of SharedPreferencesStorePlatform.instance.

2.0.4

  • Removes dependency on meta.

2.0.3

  • Removed obsolete pluginClass: none from pubpsec.
  • Fixes newly enabled analyzer options.

2.0.2

  • Updated installation instructions in README.

2.0.1

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

2.0.0

  • Migrate to null-safety.

0.0.3+1

  • Update Flutter SDK constraint.

0.0.3

  • Update integration test examples to use testWidgets instead of test.

0.0.2+4

  • Remove unused test dependency.
  • Update Dart SDK constraint in example.

0.0.2+3

  • Check in linux/ directory for example/

0.0.2+2

  • Bump the file package dependency to resolve dep conflicts with flutter_driver.

0.0.2+1

  • Replace path_provider dependency with path_provider_linux.

0.0.2

  • Add iOS stub.

0.0.1

  • Initial release to support shared_preferences on Linux.

Installing

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

environment:
  sdk: ^3.3.0
  flutter: ">=3.19.0"

flutter:
  plugin:
    implements: shared_preferences
    platforms:
      linux:
        dartPluginClass: SharedPreferencesLinux

dependencies:
  file: ">=6.0.0 <8.0.0"
  flutter:
    sdk: flutter
  path: ^1.8.0
  path_provider_linux: ^2.0.0
  path_provider_platform_interface: ^2.0.0
  shared_preferences_platform_interface: ^2.4.0

dev_dependencies:
  flutter_test:
    sdk: flutter

topics:
  - persistence
  - shared-preferences
  - storage

Version history

VersionPublishedArchiveSHA-256
0.0.1On demandDownload31992ec4…dc3317
0.0.2On demandDownloadd3abe329…57e7ff
0.0.2+1On demandDownloadcf13f7da…f95e1f
0.0.2+2On demandDownload35645817…c3bf45
0.0.2+4On demandDownload36c465d8…0d7f95
0.0.4-nullsafetyOn demandDownloadf5c046d6…48a88f
2.0.0On demandDownload33fc7c6c…866fee
2.0.2On demandDownloadeb83ed07…d52be0
2.0.3On demandDownloadd772f651…c55632
2.0.4On demandDownload65e86adb…5ed3a7
2.1.0On demandDownloadac361c65…474422
2.1.1On demandDownload28aefc12…a459a5
2.1.2On demandDownloadfbc3cd68…07a2c8
2.1.3On demandDownloadf8ea038a…4cb874
2.1.4On demandDownloadd7fb71e6…a7e8fa
2.1.5On demandDownload3a59ed10…f2c707
2.2.0On demandDownload9d387433…9a9afa
2.3.0On demandDownload71d6806d…5018e1
2.3.1On demandDownloadc2eb5bf5…8a128a
2.3.2On demandDownload9f2cbcf4…3f1faa
2.4.0On demandDownload2ba0510d…c7ccc1
2.4.1Cached · Upstream SHA-256 matchedDownload580abfd4…b40f2f

Dependencies

file "\u003e=6.0.0 \u003c8.0.0"

flutter { "sdk": "flutter" }

path "^1.8.0"

path_provider_linux "^2.0.0"

path_provider_platform_interface "^2.0.0"

shared_preferences_platform_interface "^2.4.0"