FLUTTER ECOSYSTEM

drift_dev

Dev-dependency for users of drift. Contains the generator and development tools.

Latest version
2.35.0
30-day downloads
1.1M
Likes
72
Pub points
100

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

drift_dev is a development dependency for the drift package, providing code generation tools and utilities to streamline database management in Flutter applications. It includes a generator that creates efficient, type-safe Dart code from SQL schema definitions, reducing boilerplate and minimizing runtime errors. Designed for developers using drift for local database operations, it enhances productivity by automating repetitive tasks like model creation and migration handling. The tool integrates seamlessly with Flutter’s build system, enabling fast iteration during development.

Use cases
  • Generating type-safe database models
  • Automating migration scripts
  • Simplifying SQL schema integration
  • Enabling real-time database updates
  • Supporting offline-first app development
Key features
  • Code generation from SQL schemas
  • Type-safe database access
  • Seamless integration with Flutter build system
  • Automatic migration handling
  • Real-time data synchronization support
Suitable for
  • Flutter developers using drift for local databases
  • Apps requiring offline-first functionality
  • Teams prioritizing type safety and code quality
  • Developers seeking reduced boilerplate
  • Projects with complex database schemas
Considerations
  • Requires drift as a dependency
  • Limited to Flutter projects
  • No runtime functionality
  • Must be used in development only
  • Depends on build_runner for code generation
Supported platformsNot available

Install package

flutter pub add drift_dev

Categories

Dependencies

Dependency list 25 items

Source repository

Related projects