Setup & Installation
What This Skill Does
Guides you through building a structured data layer in Flutter apps using SQLite and other local databases. Covers repository and service patterns, offline-first synchronization, and caching strategies for different data types.
Gives you a copy-paste-ready architecture for local data persistence in Flutter instead of figuring out the repository pattern, sync logic, and caching strategy from scratch.
When to use it
- Adding SQLite persistence to a Flutter app with proper table schemas
- Building an offline-first sync flow between local storage and a remote API
- Choosing between shared_preferences, sqflite, and Hive for different data sizes
- Structuring repositories and services so the UI never touches raw database models
- Queuing failed writes for background sync when the device goes offline