safe_local_storage
2.0.7, released 4 weeks ago by an unverified publisher
Key-value storage library for Dart/Flutter that safely reads and writes local data.
Unverified publisher
What it does
safe_local_storage provides a simple API to persist primitive values on the device. It supports Android, iOS, Windows, macOS, and Linux without requiring code generation.
AI-written summary of version 2.0.7, based on the package's README and metadata. Report an inaccuracy
Use it when
- Need lightweight local caching of small values
- Want a single API that works across mobile and desktop
- Prefer a dependency-free solution for simple persistence
Skip it when
- Handling large binary blobs or complex data structures
- Requiring encryption or secure storage
- Need advanced database features like queries or migrations
Strengths
- Cross-platform support
- Simple, declarative API
- No build_runner or codegen required
Weaknesses
- No built-in encryption
- Limited to primitive types
- No query or migration capabilities
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Alternatives
Packages that do the same job and could replace safe_local_storage.
- shared_preferences
Standard key-value storage with broader community support
97Compare - flutter_secure_storage
Provides encrypted storage for sensitive data
93Compare
Works with
Packages commonly used together with safe_local_storage: ones it builds on, ones built on it, and its own family.
- synchronizedsafe_local_storage depends on itLock mechanism to prevent concurrent access to asynchronous code.
- media_kitBuilt on safe_local_storageCross‑platform video and audio player for Flutter and Dart
- json_cacheBuilt on safe_local_storageUnifies local storage packages under a single object-oriented JSON caching interface.