Discontinuation Notice
This package has been discontinued. It has been merged into flutter/packages/shared_preferences. Starting from shared_preferences 2.5.0
, this package is no longer needed, as its functionality is now included in the main package. To continue using the tool, please update your shared_preferences version to >=2.5.0
.
Description
A DevTools extension for Flutter's shared_preferences package.
Features
This package adds a new tool to Flutter's DevTools, utilizing the new devtools_extensions
framework. With this tool, you can:
- List all keys stored in your app's
SharedPreferences
. - Search for specific keys.
- Edit or remove values directly, with changes reflected in your app instantly.
It supports all data types available in SharedPreferences
:
String
int
double
bool
List<String>
Selecting a key | Editing a value |
---|---|
![]() |
![]() |
Getting started
To add this package to your project, run:
flutter pub add shared_preferences_tools
That’s it! Now you just need to open your DevTools and use the SharedPreferences tool!
Contributing to this package
- Run the example project (or any project that depends on shared_preferences_tools) and copy its debug service URL.
- Run the
shared_preferences_tools_devtools_extension
project via VSCode or by running the following command:
flutter run -d chrome --dart-define=use_simulated_environment=true
For more information, see the devtools_extensions package documentation.