hybrid_storage 1.1.1
hybrid_storage: ^1.1.1 copied to clipboard
A hybrid storage library providing unified abstraction over secure storage and shared preferences with integrated logging support. Note - SecureStorage on Web uses unencrypted LocalStorage.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.1.1 - 2026-01-12 #
- Deleted unnecessary imports
- Fix problems
1.1.0 - 2025-12-01 #
Added #
- Complete functional example project in
example/folder - Example screen demonstrating usage WITHOUT dependency injection (direct instantiation)
- Example screen demonstrating usage WITH dependency injection (get_it + injectable)
- Reference implementation of
StorageModulefor injectable users - Injectable dependency (optional) for dependency injection support
- Documentation on DI setup patterns and best practices
- Runnable Flutter example app showcasing all library features
Removed #
- Simple
example/example.dartfile (replaced by complete example app)
Changed #
- Improved example documentation with clear DI vs non-DI patterns
- Enhanced README with links to example implementations
1.0.0 - 2025-11-07 #
Added #
- Initial release of Hybrid Storage library
StorageServiceinterface with basic storage operationsSecureStorageImplimplementation usingflutter_secure_storagePreferencesStorageImplimplementation usingshared_preferences- Integrated logging with
hybrid_logger - Support for String, bool, int, and double types
containsKeymethod to verify key existence- Automatic initialization logging
- Automatic error logging with detailed context
- Complete documentation in README.md
- Usage examples in example/example.dart
- DI-agnostic design (removed injectable dependency)
- Comprehensive unit tests with 45 test cases
Features #
- ✅ Encrypted secure storage (Android, iOS, macOS, Linux, Windows)
- ✅ Unencrypted preferences storage (all platforms)
- ✅ Unified interface for both types
- ✅ Colored logs with contextual information
- ✅ Robust error handling
- ✅ Complete documentation and examples
- ✅ Cross-platform support (Android, iOS, Web, Linux, macOS, Windows)
Security Notes #
- ⚠️ Web Platform:
SecureStorageImpluses unencrypted LocalStorage on Web - ⚠️ Do not use
SecureStorageImplfor sensitive data on Web platforms - ✅ All other platforms use native encrypted storage (Keychain, KeyStore, etc.)