flutter-drift

Implement drift as a local SQLite persistence layer in Flutter apps.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/maxkishchenko2015/Web_ART_Galery --skill flutter-drift-maxkishchenko2015
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flutter-drift
Source: https://github.com/maxkishchenko2015/Web_ART_Galery/tree/main/agent_skills/flutter-drift
Command: npx skills add https://github.com/maxkishchenko2015/Web_ART_Galery --skill flutter-drift-maxkishchenko2015

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Guides Flutter developers to implement Drift as a local SQLite persistence layer, enabling type-safe queries, reactive streams, migrations, and cross-platform data storage for mobile, web, and desktop apps.

Core Features & Use Cases

  • Type-safe queries, migrations, and CRUD with Drift for persistent local storage in Flutter.
  • Reactive data access with StreamBuilder, Provider, and Riverpod patterns, enabling real-time UI updates.
  • Cross-platform Flutter support (mobile, web, desktop) with setup guidance and in-depth references for migrations and tables.

Quick Start

Create your Drift database in a Flutter project and wire it into your app following the setup in this guide.

Frequently Asked Questions about flutter-drift

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a local SQLite database to a Flutter app using drift?

Drift provides a type-safe SQLite persistence layer for Flutter local storage. You create a Drift database in your project, define tables, and wire it into your app to enable CRUD operations.

Does drift support reactive streams for real-time UI updates in Flutter?

Drift supports reactive streams in Flutter for real-time UI updates. You can use StreamBuilder and Provider or Riverpod patterns to automatically reflect local storage changes in your application interface.

Can I use drift for cross-platform local storage across mobile, web, and desktop?

Drift enables cross-platform local storage for Flutter apps across Android, iOS, web, and desktop. The guide provides setup guidance to ensure your SQLite persistence layer works consistently on all supported platforms.

How do I handle database migrations when updating my Flutter local storage schema?

Drift includes built-in migration support for SQLite local storage in Flutter. The guide provides in-depth references and examples for defining migrations to safely update your database schema across app versions.

What's the best way to structure type-safe queries for local storage in Flutter?

Using drift is the best way to build type-safe queries for Flutter local storage. It allows you to define typed tables and write queries that are checked at compile time, preventing runtime SQL errors.