shared_preferences_explorer 0.0.2
shared_preferences_explorer: ^0.0.2 copied to clipboard
On-screen viewing and editing of shared_preferences
shared_preferences_explorer #
On-screen viewing and editing of shared_preferences
Usage #
Wrap your root widget with SharedPreferencesExplorer
.
Then tap the button, set by default to the Alignment.bottomLeft
, to open.
void main() {
runApp(
SharedPreferencesExplorer(
// anchorAlignment: Alignment.bottomLeft,
// colorSchemeSeed: Colors.lightGreen,
child: YourApp(),
),
);
}
Or, directly displays if child
is null.
void main() {
runApp(
const SharedPreferencesExplorer(),
// YourApp(),
);
}
Note #
- The timing of updates on your app's display after editing still depends on the implementation of your code.
- Make sure not to set
double
for keys treated asint
in your code, because this package does not distinguish betweenint
anddouble
.- Under the shared_preferences specification, it is not possible to distinguish whether an integer values were saved as
int
ordouble
. Iinteger values can be retrieved using any ofget
,getInt
orgetDouble
, no matter which method was used to save them.
- Under the shared_preferences specification, it is not possible to distinguish whether an integer values were saved as
- Throws an exception if
SharedPreferencesExplorer
is included in release mode.