FLUTTER ECOSYSTEM

build_runner

A build system for Dart code generation and modular compilation.

Latest version
2.16.1
30-day downloads
6.5M
Likes
2.4K
Pub points
160

Package Overview

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

Overview

Build_runner is a Dart build system designed to automate code generation and modular compilation. It integrates with the Dart ecosystem to execute builders that generate code based on annotations, configuration files, or other inputs. By leveraging a declarative configuration model, it enables efficient, incremental builds and supports a wide range of use cases including JSON serialization, dependency injection, and custom code generation. It is particularly useful in large-scale projects where maintaining generated code manually would be error-prone and time-consuming.

Use cases
  • Automated code generation
  • JSON serialization
  • Dependency injection setup
  • Custom builder integration
  • Incremental compilation
Key features
  • Declarative build configuration
  • Support for multiple builders
  • Incremental build execution
  • Extensible plugin architecture
  • Integration with pub package manager
Suitable for
  • Large Dart projects
  • Code generation workflows
  • Team development environments
  • CI/CD pipelines
  • Developers using annotations for code generation
Considerations
  • Requires understanding of build configurations
  • May increase initial setup complexity
  • Performance depends on builder efficiency
  • Not suitable for simple one-off scripts
  • Needs proper dependency management
Supported platformsmacOSWindowsLinux

Install package

flutter pub add build_runner

Categories

Dependencies

Dependency list 30 items

Source repository

Related projects

Rankings