Viewing version 2.4.1. Open the latest package page.
shared_preferences_windows
2.4.1Windows implementation of shared_preferences
Readme
shared_preferences_windows
The Windows 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
getStringListreturning immutable list. - Fixes
getStringListcast error. - Updates minimum supported SDK version to Flutter 3.19/Dart 3.3.
2.4.0
- Adds
SharedPreferencesAsyncWindowsAPI. - Updates minimum supported SDK version to Flutter 3.16/Dart 3.2.
2.3.2
- Updates
package:fileversion 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
clearWithParametersandgetAllWithParametersmethods. - Updates minimum supported SDK version to Flutter 3.3/Dart 2.18.
2.2.0
- Adds
getAllWithPrefixandclearWithPrefixmethods.
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_identifierslint. - Updates minimum Flutter version to 2.10.
2.1.1
- Fixes library_private_types_in_public_api, sort_child_properties_last and use_key_in_widget_constructors lint warnings.
2.1.0
- Deprecated
SharedPreferencesWindows.instancein favor ofSharedPreferencesStorePlatform.instance.
2.0.4
- Removes dependency on
meta.
2.0.3
- Removed obsolete
pluginClass: nonefrom pubpsec. - Fixes newly enabled analyzer options.
2.0.2
- Updated installation instructions in README.
2.0.1
- Add
implementsto pubspec.yaml. - Add
registerWithto the Dart main class.
2.0.0
- Migrate to null-safety.
0.0.2+3
- Remove 'ffi' dependency.
0.0.2+2
- Relax 'ffi' version constraint.
0.0.2+1
- Update Flutter SDK constraint.
0.0.2
- Update integration test examples to use
testWidgetsinstead oftest.
0.0.1+3
- Remove unused
testdependency.
0.0.1+2
- Check in windows/ directory for example/
0.0.1+1
- Add iOS stub for compatibility with 1.17 and earlier.
0.0.1
- Initial release to support shared_preferences on Windows.
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'shared_preferences_windows:2.4.1'pubspec.yaml
name: shared_preferences_windows
description: Windows implementation of shared_preferences
repository: https://github.com/flutter/packages/tree/main/packages/shared_preferences/shared_preferences_windows
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:
windows:
dartPluginClass: SharedPreferencesWindows
dependencies:
file: ">=6.0.0 <8.0.0"
flutter:
sdk: flutter
path: ^1.8.0
path_provider_platform_interface: ^2.0.0
path_provider_windows: ^2.0.0
shared_preferences_platform_interface: ^2.4.0
dev_dependencies:
flutter_test:
sdk: flutter
topics:
- persistence
- shared-preferences
- storage
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 0.0.1+1 | On demand | Download | 20b31ee8…84f38a |
| 0.0.1+3 | On demand | Download | d9929618…1dc8e5 |
| 0.0.2+2 | On demand | Download | e70e96b1…fce04f |
| 0.0.2+3 | On demand | Download | d6a5ce5d…5725fa |
| 0.0.3-nullsafety | On demand | Download | 388dc3ae…9a9029 |
| 2.0.0 | On demand | Download | 76c54a01…e8118f |
| 2.0.2 | On demand | Download | 0822d9da…832df3 |
| 2.0.3 | On demand | Download | 11cfe1f9…bbab03 |
| 2.0.4 | On demand | Download | a16f85cb…83d6e6 |
| 2.1.0 | On demand | Download | ae68cf0d…1d032e |
| 2.1.1 | On demand | Download | 97f7ab9a…d15eba |
| 2.1.2 | On demand | Download | 07c274c2…fc1f26 |
| 2.1.3 | On demand | Download | 5eaf05ae…0f00c9 |
| 2.1.4 | On demand | Download | bd014168…81b46d |
| 2.1.5 | On demand | Download | 71bcd669…d67436 |
| 2.2.0 | On demand | Download | 5e588e2e…274173 |
| 2.3.0 | On demand | Download | f95e6a43…77624d |
| 2.3.1 | On demand | Download | f763a101…7f694f |
| 2.3.2 | On demand | Download | 841ad54f…ef8f59 |
| 2.4.0 | On demand | Download | 398084b4…196ab2 |
| 2.4.1 | Cached · Upstream SHA-256 matched | Download | 94ef0f72…82e3c1 |
Dependencies
file "\u003e=6.0.0 \u003c8.0.0"
flutter {
"sdk": "flutter"
}
path "^1.8.0"
path_provider_platform_interface "^2.0.0"
path_provider_windows "^2.0.0"