FLUTTER ECOSYSTEM

cardoteka

The best type-safe wrapper over SharedPreferences. Why so? -> strongly typed cards for access to storage -> use get|set -> can work with nullable values -> callback based updates

Latest version
2.1.2
30-day downloads
152
Likes
8
Pub points
150

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

Cardoteka is a type-safe wrapper for SharedPreferences that provides strongly typed 'cards' for secure and intuitive data storage access. It enables safe get and set operations with support for nullable values and offers callback-based updates for reactive state management. Designed to reduce runtime errors, it ensures compile-time safety while maintaining flexibility across platforms. Ideal for apps needing reliable, persistent key-value storage with clean, readable code.

Use cases
  • Storing user preferences
  • Managing app settings
  • Persisting session data
  • Handling configuration values
  • Enabling offline-first features
Key features
  • Type-safe storage
  • Strongly typed cards
  • Nullable value support
  • Callback-based updates
  • Cross-platform compatibility
  • Simple get/set API
Suitable for
  • Flutter developers seeking type safety
  • Apps requiring persistent local storage
  • Projects emphasizing code reliability
  • Teams using reactive state patterns
  • Developers avoiding raw SharedPreferences
Considerations
  • Limited to key-value pairs
  • Not suitable for complex data structures
  • Requires understanding of callbacks
  • May add slight overhead for simple use cases
  • Depends on external package maintenance
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add cardoteka

Categories

Dependencies

Dependency list 2 items

Source repository

Related projects

No data available yet.