/plushcap/analysis/supabase/supabase-offline-first-flutter-apps

Building offline-first mobile apps with Supabase, Flutter and Brick

What's this blog post about?

Brick is an all-in-one data manager for Flutter that focuses on offline-first data parity, ensuring that apps function the same with or without connectivity. It handles querying and uploading between Supabase and local caches like SQLite. The main advantage of using Brick is its ability to provide a better user experience when steady bandwidth cannot be guaranteed. It also offers a third cache in memory for improved performance. Developers can use Brick by adding the necessary dependencies, setting up directories for generated code, defining model definitions, and configuring the repository. The Repository class serves as a single entry point for interacting with SQLite or Supabase while handling caching decisions. Brick also supports advanced queries, reactivity to local data updates, and upserting of models. Additionally, it allows easy configuration of foreign keys/associations between related models/tables.

Company
Supabase

Date published
Oct. 8, 2024

Author(s)
Tim Shedor, Tyler Shukert

Word count
1148

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.