Fullstack Developer at Growbox

Goal/Problem: A small mobile app (using Flutter ) for saving data offline ( some data offline) and rest data need to be synced with Cloud Firestore Tools: Cloud Firestore , SQLite Decision/Considering/Need suggestions: There is no state management in the app yet. There is a requirement to store some data offline and it should be available easily (when the phone is offline) and some data needs to stored in the cloud. I am considering using sqlflite for phone storage and firestore to sync and manage the online database. I am using flutter to build the app, I couldn't find a reliable way to use firestore cache for reading the data when phonphone is offline. So I came up with the above solution. Please suggest is this good?

READ LESS
6 upvotes3 comments276.8K views
Justin Dorfman
Justin Dorfman
August 10th 2019 at 7:28PM

Hey Pran. Thanks for sharing! I'll work on getting some suggestions for you. Do you have a time constraint?

Reply
Pran B.
Pran B.
August 10th 2019 at 7:49PM

Hi Justin,

Thank you for your consideration. I did some more research after I posted and I found a way to listen to the snapshot data (local) of firestore. I will just test it out to make sure it's reliable. Thing is flutter is in the development stage and the documentation for cloud_firestore plugin for flutter is not that clear. But I think I post my answer on StackOverflow once I am sure.

Thanks again!

Reply
Justin Dorfman
Justin Dorfman
August 10th 2019 at 7:54PM

Got it. Keep us posted! 馃檪

Reply
Avatar of Pran B.

Pran B.

Fullstack Developer at Growbox