Local
✅ Fastest access to data
✅ Offline first
❌ Delete the app, lose the data
Remote
✅ Sync data across devices
✅ Share data between users
→ May or may not support offline storage
Writing a social media app? Use a remote backend such as Firebase
Writing a habit tracker without social features? Use a local database. But which one?
This page contains a list of all the popular options:
https://fluttergems.dev/persistent-storage/
What do we need?
For our use case, using a key-value store is more than enough.
Out of all the key-value stores that are available, Hive has the best performance and a simple and intuitive API.
4 comments