flutter-drift

Community

Type-safe local storage for Flutter with Drift.

AuthorMADTeacher
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Flutter apps often need local, persistent storage with a robust API; Drift provides a SQLite-based solution with type-safe queries and reactive streams, but getting started and wiring codegen can be complex.

Core Features & Use Cases

  • Drift integration with flutter apps using drift_flutter for cross-platform local storage
  • Type-safe SQL queries with migrations and streams for reactive UI
  • Provider or Riverpod patterns for database access and state management
  • Reference examples and patterns for mobile, web, and desktop Flutter projects

Quick Start

  • Add drift, drift_flutter, and path_provider to pubspec.yaml
  • Define the database using DriftDatabase and create tables
  • Run code generation with build_runner to generate the data access code
  • Use the generated AppDatabase with Provider or Riverpod in your UI

Dependency Matrix

Required Modules

None required

Components

references

💻 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/MADTeacher/mad-agents-skills/archive/main.zip#flutter-drift

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.