Skip to content
pubscout

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
$ flutter pub add safe_local_storage
Source repository

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.

Works with

Packages commonly used together with safe_local_storage: ones it builds on, ones built on it, and its own family.