hybrid_storage 1.1.1 copy "hybrid_storage: ^1.1.1" to clipboard
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 StorageModule for 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.dart file (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
  • StorageService interface with basic storage operations
  • SecureStorageImpl implementation using flutter_secure_storage
  • PreferencesStorageImpl implementation using shared_preferences
  • Integrated logging with hybrid_logger
  • Support for String, bool, int, and double types
  • containsKey method 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: SecureStorageImpl uses unencrypted LocalStorage on Web
  • ⚠️ Do not use SecureStorageImpl for sensitive data on Web platforms
  • ✅ All other platforms use native encrypted storage (Keychain, KeyStore, etc.)
2
likes
140
points
126
downloads

Publisher

verified publisherrudo.es

Weekly Downloads

A hybrid storage library providing unified abstraction over secure storage and shared preferences with integrated logging support. Note - SecureStorage on Web uses unencrypted LocalStorage.

Repository (GitHub)
View/report issues

Topics

#storage #secure-storage #shared-preferences #flutter #persistence

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter, flutter_secure_storage, hybrid_logger, injectable, shared_preferences

More

Packages that depend on hybrid_storage