· DIGITAL EXPLORER

Manage online / offline

Hello,

I am looking for a tutoriel about mixed online and offline application.

See proposition of helpdesk of flutterflow

Yes, it is perfectly possible to take a hybrid approach in FlutterFlow by persisting data offline with SQLite, while still leveraging cloud Firestore sync. Here is one way to architect that:

  1. Define SQLite databases using the FlutterFlow SQLite.

  2. On app start, query data from SQLite tables into app state

  3. Use state data to display UI - supports offline usage

  4. Whenever internet available, sync state data to Firestore collections

  5. On data add/change, insert/update both SQLite and Firestore

  6. Fetch periodic Firestore data to refresh SQLite cache

This gives you the instant responsiveness of SQLite for offline use, with the scale and sync of Firestore for when online. Initial data priming plus incremental sync keeps both storage layers up to date.

6
1 reply