cardoteka 2.1.1 copy "cardoteka: ^2.1.1" to clipboard
cardoteka: ^2.1.1 copied to clipboard

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

[2.1.1] - 11-03-2025 #

  • fix: regressed issue #44 peppered with tests

[2.1.0] - 22-02-2025 #

  • fix: when WatcherImpl.attach is called with fireImmediately=true for Cardoteka, the callback is called asynchronously (#44)

[2.0.0] - 10-02-2025 #

  • upd: minimum supported SDK version to Flutter 3.24.0/Dart 3.5.0
  • 🛡️fix: Implement security advisories CWE-502
  • new: now you can directly create an instance of the Cardoteka (#15)
  • new: CardotekaAsync for asynchronous data retrieval (works without cache) (#24)
  • 🧨upd: all declarations of own classes from Cardoteka and CardotekaAsync must now necessarily be declared as final or base or sealed
  • 🧨upd: AccessToSP has been deleted. Use import package:cardoteka/access_to_sp.dart.
  • 🧨upd: changes in Watcher.attach: onRemove parameter is now required and callback is now a named onChange parameter (#14, #37)
  • add: Detachability and DetacherChangeNotifierfor easy dispose of linked resources in classes with business logic (#10, #9)
  • add: CRUD.readAsync method for use with CardotekaAsync
  • add: notifyAll method for Watcher (#17)
  • upd: Converters.colorAsInt is temporarily deprecated. See more details in (#31)
  • add: CardotekaMigrator.migrate method for data migration (#33)
  • upd: all examples in example folder have been updated
  • upd: some internal methods have been hidden from the IDE prompts to make package easier to use
  • doc: "Notifier (riverpod)", "Analogy in SharedPreferencesWithCache and SharedPreferencesAsync", "Migration", "Sync or Async storage", "Detachability" sections were added to readme

You can see all closed issues in Milestone v2.0.0.

Also, read readme.md section on data migration Cardoteka from v1 to v2.

[1.1.0] - 02-10-2024 #

  • upd: minimum supported SDK version to Flutter 3.13.0/Dart 3.1.0
  • fix: incorrect assert message about initialization, close #12
  • 🧨upd: if you used CollectionConverter and its inheritors, you are now only allowed to use them by using extends and adding final modifier to your class (or base|sealed)
  • 🧨upd: Cardoteka.setPrefix now static. Add allowList parameter. The prefix now named parameter.
  • 🧨add: use CardotekaUtilsForTest.setMockInitialCards method instead of CardotekaUtilsForTest.setMockInitialValues, which is now responsible for the original SharedPreferences.setMockInitialValues method. Close #16
  • doc: "Obfuscate", "Materials", "Apps", "Saving null values" sections were added to readme

You can see all closed issues in Milestone v1.1.0

[1.0.1] - 22-12-2023 #

  • fix: remove invalid example from example
  • upd: description

[1.0.0] - 22-12-2023 #

first public release 🎊

  • fully documented code
  • with examples of use in the example/lib folder
  • code is covered by tests (with a coverage percentage >80%)
  • prepared readme.md with architecture overview

[0.0.1] - 04-11-2022 #

  • 🍕 How about some pizza, pub.dev?
8
likes
150
points
191
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

2024.09.26 - 2025.04.10

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

Homepage
Repository (GitHub)
View/report issues

Topics

#shared-preferences #storage #cardoteka #database #persistence

Documentation

API reference

Funding

Consider supporting this project:

t.me

License

Apache-2.0 (license)

Dependencies

flutter, meta, shared_preferences

More

Packages that depend on cardoteka