flutter-drift
CommunityDrift guide for Flutter local SQLite
System Documentation
What problem does it solve?
This Skill guides Flutter developers to implement persistent local storage using Drift (SQLite) with type-safe queries and reactive data streams, reducing boilerplate and preventing data loss.
Core Features & Use Cases
- Type-safe database integration for Flutter apps using drift_flutter
- Reactive UI patterns with StreamBuilder and Provider/Riverpod
- Cross-platform Drift setup for mobile, web, and desktop
- Database migrations and CRUD operations with practical usage patterns
- Use Case: Build a offline-first to-do app with real-time updates and migrations
Quick Start
Add dependencies drift, drift_flutter, and path_provider to pubspec.yaml and run code generation with drift_dev and build_runner. Create a Drift database class annotated with @DriftDatabase and implement the database with driftDatabase support for mobile/web/desktop. Run: dart run build_runner build. Then import the generated code and start using drift queries in your Flutter UI.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: flutter-drift Download link: https://github.com/Im5tu/claude/archive/main.zip#flutter-drift Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.