ai_bridge_storage_shared_prefs 0.1.0
ai_bridge_storage_shared_prefs: ^0.1.0 copied to clipboard
A SharedPreferences implementation of StorageProvider for flutter_ai_bridge persistence.
ai_bridge_storage_shared_prefs #
SharedPreferences-based persistence for the ai_bridge_core framework — save and restore AI conversation history locally.
Features #
- Implements
StorageProviderfromai_bridge_core - Save/load/delete conversations via
SharedPreferences - JSON serialization with
FormatExceptionhandling - Lists all stored conversations
Usage #
import 'package:ai_bridge_storage_shared_prefs/ai_bridge_storage_shared_prefs.dart';
final storage = SharedPrefsStorage();
await storage.saveConversation(conversation);
final loaded = await storage.loadConversation('conv-id');
License #
MIT