buoy_storage 0.3.0
buoy_storage: ^0.3.0 copied to clipboard
Buoy storage inspector for Flutter — browse and monitor shared_preferences (plus optional secure/MMKV backends) in an in-app panel with filters and live streaming to Buoy Desktop.
example/lib/main.dart
// Buoy storage inspector — two lines of wiring:
// 1. registerBuoyStorage() registers the tool + sync adapter.
// 2. BuoyDevTools mounts the in-app menu and starts desktop sync.
import 'package:buoy_storage/buoy_storage.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
void main() {
if (kDebugMode) registerBuoyStorage();
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: const Scaffold(body: Center(child: Text('Your app'))),
builder: (context, child) =>
BuoyDevTools(deviceName: 'My App', child: child ?? const SizedBox.shrink()),
);
}
}