devtray_prefs 0.6.2 copy "devtray_prefs: ^0.6.2" to clipboard
devtray_prefs: ^0.6.2 copied to clipboard

shared_preferences support for devtray — a Storage page adapter, and persistence for mock rules.

devtray_prefs #

A Storage page adapter for shared_preferences, plus persistence for mock rules.

Part of devtray — the overlay, the pages and the stores live in the core package; this is just the shared_preferences glue.

Install #

dependencies:
  devtray: ^0.6.2
  devtray_prefs: ^0.6.2

Usage #

import 'package:devtray_prefs/devtray_prefs.dart';

// Browse and edit prefs from the Storage page
StorageDebugPage(adapters: [SharedPreferencesStorageAdapter()])

// Make Network-page mock rules survive a restart
DevtrayMocks.instance.storage = SharedPreferencesMockRuleStorage();

Two independent pieces — use either. Without the second, mock rules are session-only and vanish on hot restart.

Docs #

Full setup and the other integrations: https://github.com/hassan171/devtray

License #

MIT — see LICENSE.

0
likes
150
points
29
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

shared_preferences support for devtray — a Storage page adapter, and persistence for mock rules.

Repository (GitHub)
View/report issues

Topics

#debugging #devtools #shared-preferences #storage

License

MIT (license)

Dependencies

devtray, flutter, shared_preferences

More

Packages that depend on devtray_prefs