This repository was archived by the owner on Feb 18, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
This repository was archived by the owner on Feb 18, 2026. It is now read-only.
Reading list #41
Copy link
Copy link
Open
Labels
Type: informationKnowledge (blogs, articles, docs)Knowledge (blogs, articles, docs)
Milestone
Description
- 1. https://pub.dev/packages/fluttertoast
- 2. https://medium.com/flutter-community/cache-manager-with-flutter-5a5db0d3a3e6
- 3. https://alphacode.medium.com/caching-user-data-like-a-pro-in-flutter-18ed0127c923
- 4. https://pub.dev/packages/hive
- 5. https://pub.dev/packages/objectbox
- 6. https://medium.com/flutter-community/using-hive-instead-of-sharedpreferences-for-storing-preferences-2d98c9db930f
- 7. https://pusher.com/tutorials/local-data-flutter/
- 8. https://blog.codemagic.io/choosing-the-right-database-for-your-flutter-app/
- 9. https://betterprogramming.pub/how-to-handle-data-locally-in-flutter-79506abc07c9
- 10. https://docs.flutter.dev/cookbook/persistence
- 11. https://stackoverflow.com/questions/66081455/flutter-how-to-save-data-locally
- 12. https://levelup.gitconnected.com/the-4-ways-to-store-data-locally-in-your-flutter-app-that-youre-going-to-need-abdafa991ae3
- 13. https://www.kindacode.com/article/ways-to-store-data-offline-in-flutter/
- 14. https://blog.logrocket.com/choosing-right-database-flutter-application/
About local storage:
Object box ❌ vs Hive ✅
As you can see, in the below example
The problem with object_box is, the put method here returns a unique id for every unique object that is being stored.
In order to retrieve the data stored, we need to use the same id, which is not a feasible solution in our use case i.e., using it instead of shared_preferences
//object_box implementation
final id = box.put(person); // Create
person = box.get(id)!; // ReadTherefore, in this use case using Hive will be a better choice, because it's not just similar to shared_pref but also even faster (shared_pref is faster in reads)
Reference:
- https://medium.com/flutter-community/using-hive-instead-of-sharedpreferences-for-storing-preferences-2d98c9db930f
- https://pub.dev/packages/hive
- https://github.com/hivedb/hive_benchmark
mixin vs constants?
if we are using mixins then
mixin Constants on FirebaseService {
String USERS = "users";
String ACCOUNTS = "accounts";
String BANK_AC1_DOC = "bankAc1Doc";
String TAGS = "tags";
String TAG_DOC = "tagDoc";
String TRANSACTIONS = "transactions";
}But as you can see, these are mutable fields, whereas the ones declared in constants/firebase.dart are the const fields
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: informationKnowledge (blogs, articles, docs)Knowledge (blogs, articles, docs)