jt_preferences is a Flutter/Dart package providing JSON-based key-value storage with optional AES encryption for enhanced security. It supports storing primitive types like int, double, bool, and String, as well as serializable writable objects. Designed for persistent data management across platforms, it simplifies secure local storage without requiring complex database setup. Ideal for apps needing reliable, encrypted, and structured data persistence.
Use cases
- Storing user preferences securely
- Saving app state between sessions
- Persisting encrypted configuration settings
- Managing user-specific data locally
- Handling small-scale app data with encryption
Key features
- AES encryption support
- JSON-based storage
- Support for multiple data types
- Serializable writable objects
- Cross-platform compatibility
- Simple API for key-value operations
Suitable for
- Apps requiring secure local storage
- Developers seeking lightweight persistence
- Projects with sensitive user data
- Flutter apps targeting multiple platforms
- Prototypes needing fast data persistence
Considerations
- Not suitable for large datasets
- Encryption adds minor performance overhead
- Requires objects to be serializable
- Limited to basic data types and simple structures
- No built-in data querying or indexing