File tree 3 files changed +3
-14
lines changed
packages/shared_preferences/shared_preferences
3 files changed +3
-14
lines changed Original file line number Diff line number Diff line change 1
- ## NEXT
1
+ ## 2.3.2
2
2
3
+ * Removes outdated testing information from README.
3
4
* Updates minimum supported SDK version to Flutter 3.22/Dart 3.4.
4
5
* Updates minimum supported SDK version to Flutter 3.19/Dart 3.3.
5
6
Original file line number Diff line number Diff line change @@ -183,18 +183,6 @@ If you have been using `SharedPreferences` with the default prefix but wish to c
183
183
to a new prefix, you will need to transform your current preferences manually to add
184
184
the new prefix otherwise the old preferences will be inaccessible.
185
185
186
- ### Testing
187
-
188
- In tests, you can replace the standard ` SharedPreferences ` implementation with
189
- a mock implementation with initial values. This implementation is in-memory
190
- only, and will not persist values to the usual preference store.
191
-
192
- <? code-excerpt "readme_excerpts.dart (Tests)"?>
193
- ``` dart
194
- final Map<String, Object> values = <String, Object>{'counter': 1};
195
- SharedPreferences.setMockInitialValues(values);
196
- ```
197
-
198
186
### Storage location by platform
199
187
200
188
| Platform | SharedPreferences | SharedPreferencesAsync/WithCache |
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ description: Flutter plugin for reading and writing simple key-value pairs.
3
3
Wraps NSUserDefaults on iOS and SharedPreferences on Android.
4
4
repository : https://github.com/flutter/packages/tree/main/packages/shared_preferences/shared_preferences
5
5
issue_tracker : https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+shared_preferences%22
6
- version : 2.3.1
6
+ version : 2.3.2
7
7
8
8
environment :
9
9
sdk : ^3.4.0
You can’t perform that action at this time.
0 commit comments