shared_preferences_explorer 0.3.0 copy "shared_preferences_explorer: ^0.3.0" to clipboard
shared_preferences_explorer: ^0.3.0 copied to clipboard

A Flutter package for on-screen viewing of shared_preferences. Supports SharedPreferences, SharedPreferencesAsync, and SharedPreferencesWithCache.

shared_preferences_explorer #

A Flutter package for on-screen viewing of shared_preferences.
Supports SharedPreferences, SharedPreferencesAsync, and SharedPreferencesWithCache.

Usage #

1. Floating button widget 2. Screen widget
SharedPreferences SharedPreferencesExplorer SharedPreferencesExplorerScreen
SharedPreferencesAsync SharedPreferencesAsyncExplorer SharedPreferencesExplorerAsyncScreen
SharedPreferencesWithCache SharedPreferencesAsyncExplorer (cache is ignored) SharedPreferencesExplorerAsyncScreen (cache is ignored)

1. Floating button widget #

Wrap your app's root widget with SharedPreferencesExplorer or SharedPreferencesAsyncExplorer, and tap the floating button to open.

void main() {
  runApp(
    SharedPreferencesExplorer(
      // /*Optional*/ instance:
      // /*Optional*/ initialFloatingButtonAlignment: 
      child: YourApp(),
    ),
  );
}
  • The floating button is draggable, and the initial position can be set using initialFloatingButtonAlignment parameter.

2. Screen widget #

Use SharedPreferencesExplorerScreen or SharedPreferencesExplorerAsyncScreen anywhere in your app.

Navigator.of(context).push(
  MaterialPageRoute<void>(
    builder: (context) =>
        const SharedPreferencesExplorerScreen(
            // /*Optional*/ instance:
            ),
  ),
);

Note #

  • Any cache settings in SharedPreferencesWithCache will be ignored and the latest value is always retrieved.

  • You can optionally provide an instance to the instance parameter. If not provided, SharedPreferences.getInstance() or SharedPreferencesAsync() will be used.

5
likes
150
points
72
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

A Flutter package for on-screen viewing of shared_preferences. Supports SharedPreferences, SharedPreferencesAsync, and SharedPreferencesWithCache.

Repository (GitHub)

Topics

#shared-preferences

Documentation

API reference

License

MIT (license)

Dependencies

flutter, shared_preferences

More

Packages that depend on shared_preferences_explorer