FLUTTER ECOSYSTEM

drift

Drift is a reactive library to store relational data in Dart and Flutter applications.

Latest version
2.33.0
30-day downloads
721.5K
Likes
2.4K
Pub points
160

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

Drift is a reactive, type-safe library for managing relational databases in Dart and Flutter applications. It provides a powerful SQL-like syntax with compile-time checks, enabling efficient local data storage across multiple platforms. Drift supports real-time updates through streams, making it ideal for apps requiring responsive data handling. With seamless integration into Flutter workflows, it simplifies database operations while maintaining performance and scalability.

Use cases
  • Offline-first mobile apps
  • Real-time data synchronization
  • Local data persistence in Flutter
  • Complex query operations
  • Cross-platform database management
  • App state management with persistent storage
Key features
  • Reactive database queries with streams
  • Type-safe SQL syntax
  • Compile-time query validation
  • Support for migrations and schema evolution
  • Cross-platform compatibility
  • Efficient change tracking
Suitable for
  • Flutter developers needing local database storage
  • Apps requiring offline functionality
  • Projects with complex data relationships
  • Teams prioritizing code safety and maintainability
  • Developers seeking a modern alternative to SQLite wrappers
Considerations
  • Learning curve for advanced SQL features
  • Requires careful migration planning
  • Not suitable for large-scale server-side databases
  • Limited documentation compared to mature alternatives
  • Runtime overhead from reactivity features
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add drift

Categories

Source repository

Related projects

Rankings